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?



ulimit output:

administrators-mac-pro:bin jhscott$ uname -a; ulimit -H -n
Darwin administrators-mac-pro.local 9.4.0 Darwin Kernel Version 9.4.0: Mon Jun 9 19:30:53 PDT 2008; root:xnu-1228.5.20~1/RELEASE_I386 i386
unlimited


[jhscott@jscott-t5400 ~]$ uname -a; ulimit -H -n
Linux jscott-t5400.local 2.6.25.9-40.fc8 #1 SMP Fri Jun 27 16:05:49 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux
256000


I still have a problem if the normal operation of my server (which tests are simulating) requires more file descriptors than I am given. From my perspective OSX is making it harder for me to get what I want by giving child processes a smaller file handle limit than the soft limit I have defined in the parent shell (e.g., by setting default to MAX_OPEN). I'm not clear what purpose this serves.

It sounds like I may be able to reset this using Suite/P, but this isn't ideal.

Jacob


On Aug 21, 2008, at 4:58 PM, Greg Guerin wrote:

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

_______________________________________________ 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>)



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.