Hi Greg,
I've made changes to the kern.* options by creating a /etc/
sysctl.conf:
administrators-mac-pro:bin jhscott$ cat /etc/sysctl.conf
kern.maxfiles=512000
kern.maxfilesperproc=256000
I don't necessarily need 256k file handles, but I do need more than
10k (I have unit tests simulating normal behavior which are dying).
I'm running a search server that is indexing a large corpus of
files; and to guarantee fresh results, am often reopening files. I
can't necessarily close old descriptors with any haste, because they
may be servicing existing searches.
I'll be taking a look at the man pages you suggested as well as your
Suite/P software, but on linux this is as easy as ulimit -n <large>;
java Application
Thanks very much,
Jacob
On Aug 21, 2008, at 4:25 PM, Greg Guerin wrote:
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
_______________________________________________
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