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 don't necessarily need 256k file handles, but I do need more than 10k (I have unit tests simulating normal behavior which are dying).

Sounds to me like a bug in the unit tests, or in the code being tested. In particular, the code should read and respect any limit that the process is operating under. If that means throttling the number of concurrent open files, then that's what it should do. Processes should operate properly within their assigned limits or degrade gracefully. If they can't, then the process is at fault, not the limit.



... but on linux this is as easy as ulimit -n <large>; java Application

Probably because Linux has higher hard-limits, or higher sysctl settings, or doesn't support those other limits at all.


Use 'ulimit -H -a' on a Linux bash and see what its hard-limits are. I doubt the fd's are really unlimited.

  -- 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.