Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

10.4: Permanently increase the process limit UNIX
Tiger only hintThis is not my hint, but I'm reporting it here after seeing it posted elsewhere. Phillip Moore found a solution for occasional tcsh: no more processes and similar errors. Check his original post for details and the discussion.

One modifies /etc/launchd.conf by adding this line:
limit maxproc 512 2048
A restart is then required to activate the new settings. Or find some other way to restart launchd, which I didn't feel comfortable doing. I'd run into this problem sometimes after opening multiple Terminals and running a bunch of shell scripts.

[robg adds: As Phillip notes on his page, you only need to do this if you've run into the 100 process limit before; there's no other reason to do it. Visit his page for more details on the settings...]
    •    
  • Currently 3.00 / 5
  You rated: 5 / 5 (4 votes cast)
 
[13,435 views]  

10.4: Permanently increase the process limit | 6 comments | Create New Account
Click here to return to the '10.4: Permanently increase the process limit' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Permanently increase the process limit
Authored by: praseodym on Mar 18, '06 03:37:30PM
10.4: Permanently increase the process limit
Authored by: rjbailey on Mar 18, '06 07:42:51PM

Thanks. Of course I searched before posting, but found nothing.



[ Reply to This | # ]
10.4: Permanently increase the process limit
Authored by: bonobo on Mar 19, '06 07:39:04AM

Could this be an ailment against my system sometimes not mounting disk images with error notice "too many processes"?



[ Reply to This | # ]
10.4: Permanently increase the process limit
Authored by: Steff-X2 on Mar 20, '06 05:33:13AM

Yes, but not only. There is a limit for the whole system but also a limit per user. The same applies for files.

You can increase those limits directly by editing /etc/sysctl.conf

kern.maxprocperuid=nnn sets the max number of processes per user. Be careful to increase the "kern.maxproc" too or you may be in trouble if the system itself runs out of available process.

Restart your Mac after changes to sysctl.conf

[ Reply to This | # ]

10.4: Permanently increase the process limit
Authored by: jerry@j3iss.com on Mar 20, '06 07:17:27AM

I tried this, and it works up to a point. The problem is that OS X appears to have a much lower limit than other Unixes so I still get "out of processes". On other Unixes I can set 8000 user and 12000 system to avoid these messages.

Anyone have a fix?



[ Reply to This | # ]
10.4: Permanently increase the process limit
Authored by: Steff-X2 on Mar 20, '06 09:34:58AM

IMHO it seems very strange that you need so many processes running at the same time. Is it a server ? What kind of process requires so many child processes ?

Anyway, you should be able to set the max values to anything you want if you have enough hardwired memory (kernel RAM is never paged out in virtual memory).

[ Reply to This | # ]