How to increase ulimit permanantly

I have the following ulimit limits. The number 532 seems to be from kern.maxproc. But I have ~/.launchd.conf that sets maxproc to a larger value.


~$ ulimit -H -a

core file size (blocks, -c) unlimited

data seg size (kbytes, -d) unlimited

file size (blocks, -f) unlimited

max locked memory (kbytes, -l) unlimited

max memory size (kbytes, -m) unlimited

open files (-n) unlimited

pipe size (512 bytes, -p) 1

stack size (kbytes, -s) 65532

cpu time (seconds, -t) unlimited

max user processes (-u) 532

virtual memory (kbytes, -v) unlimited

~$ ulimit -S -a

core file size (blocks, -c) 0

data seg size (kbytes, -d) unlimited

file size (blocks, -f) unlimited

max locked memory (kbytes, -l) unlimited

max memory size (kbytes, -m) unlimited

open files (-n) 256

pipe size (512 bytes, -p) 1

stack size (kbytes, -s) 8192

cpu time (seconds, -t) unlimited

max user processes (-u) 266

virtual memory (kbytes, -v) unlimited

~$ echo $SHELL

/bin/bash


~$ sysctl -a |grep 532

kern.maxproc = 532

kern.maxproc: 532


~$ cat ~/.launchd.conf

limit maxproc 1024 1024




I could run in my bashrc. But I still can not increase the hard limit.


sudo sysctl -w kern.maxproc=1024

sudo sysctl -w kern.maxprocperuid=1024


Does anybody have a solution to this problem?

MacBook Pro, Mac OS X (10.6.7)

Posted on Apr 27, 2012 8:16 AM

Reply
1 reply

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to increase ulimit permanantly

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.