Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Our Archives > General Archives > Servers > app suddenly stopped working - fix

 
app suddenly stopped working - fix
Thread Tools
Fresh-Faced Recruit
Join Date: Dec 2002
Status: Offline
Aug 31, 2003, 10:57 PM
 
A command line based tool I use suddenly stopped working recently. I tried everything before finally compiling it on another OSX box, running it there successfully, and then running ktrace on both to see the differences. One ktrace stopped after an execv, the other kept going, with the next call referencing /var/vm/app_profile.

Some googling revealed (indirectly through arstechnica):

http://developer.apple.com/technotes/tn2002/tn2053.html

in particular:

"In order to reduce application launch times, the kernel now maintains information about the working set of an application between launches (in "/var/vm/app_profile"). Pre-heat files are meant to be transparent to the user; however, developers who are constantly re-working their applications may find that their pre-heat files are getting large. The files may become clogged with out-of-date profiles on applications who's versions have changed. As a result, developers may find that it is good to clear out the old pre-heat files on test machines once in a while. To do this, become super-user and do a rm -r /private/var/vm/app_profile and then reboot. app_profile is the directory which contains the profile files. The directory is automatically re-created on reboot."

And suddenly qmail runs again.

I'm thinking periodic cleaning of /var/vm/app_profile may be in order. Maybe make it part of any reboot sequence.
     
 
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:41 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2