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?




On Aug 22, 2008, at 6:45 PM, Pratik Solanki wrote:

Jacob,

In order to use more than 10240 file descriptors in Java, you'll need to pass '-XX:-MaxFDLimit' to the VM.

The reason is that Java tries to "up" its max file descriptor limit in normal usage to OPEN_MAX using setrlimit. OPEN_MAX is set to 10240 in the include files and this hurts you when you are explicitly using a sysctl to bump up the limit in the kernel. By passing '-XX:-MaxFDLimit', you'll tell the VM to not call setrlimit and hence it should be able to access more file descriptors.

If it's not, and I don't know for sure it isn't somewhere, but if it's not, this would be something else that would be good to have documented somewhere.


It doesn't show with
java -X

and some Google hits like this one...
Java HotSpot VM Options
http://java.sun.com/javase/technologies/hotspot/vmoptions.jsp

show it as a Solaris only option.

Mike Hall        hallmike at att dot net
http://www.geocities.com/mik3hall
http://sourceforge.net/projects/macnative



_______________________________________________
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
References: 
 >Re: File handle limit? (From: Greg Guerin <email@hidden>)
 >Re: File handle limit? (From: Jacob Scott <email@hidden>)
 >Re: File handle limit? (From: Pratik Solanki <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.