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: File handle limit?



Jacob Scott wrote:

I'd like to run java on OSX Leopard with a high file handle limit. My shell is configured correctly:

administrators-mac-pro:~ jhscott$ ulimit -a

The plain 'ulimit' bash command only affects the soft-limit. There is also a hard-limit for each limitable resource, and the soft-limit cannot go higher than that value. The hard-limit is not necessarily the same as the MAX value noted by Bill Wagner, though the hard-limit is often initially the same as that MAX value.


Read 'man setrlimit'. Also see the -H option to bash's 'ulimit' builtin.


Finally, there is a system-wide limit on open files, determined by the "kern.maxfiles" sysctl value. The related value "kern.maxfilesperproc" determines the initial per-process hard-limit.


See 'man 1 sysctl' and 'man 3 sysctl', and search for maxfiles.


I wonder what you're doing that needs a quarter-million fd's open all at the same time. Please describe what problem you're trying to solve by throwing that many fd's at it.


  -- GG

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

This email sent to 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.