Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is launchd a RAM addict?



You'll need to run our various memory introspection tools on your program to understand what is going on.

I'd start with the following tools:

leaks
heap
vmmap


Good luck,

davez



On Nov 27, 2007, at 8:14 AM, Stéphane wrote:

Mac OS X 10.4.11:

I have a process that is launched by launchd. It's set as RunAtLoad = true

I have almost exactly the same version of this process launched by a StartupItem (the differences are in strings where a figure is replaced by another).

According to Activity Monitor:

- The process launched by launchd takes 4 MB of Real Memory

- The process launched by launchd takes 1.3 MB of Real Memory

If I kill the process launched by launchd, it's automatically restarted and it takes 1.3 MB of Real Memory.

Of course since even startup items are launched via launchd - but later - it makes me wonder why a delayed launch claims less memory than an early one.


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden

References: 
 >Is launchd a RAM addict? (From: Stéphane <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.