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.

OK, looked at my Google hits a little closer, it is mentioned here...
Java 1.4.2 Release Notes: Java HotSpot
http://developer.apple.com/releasenotes/Java/Java142RN/ResolvedIssues/ chapter_3_section_6.html


Sorry.

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.