Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Java
find max number of open file descriptors using java
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Gordon Beaton, post: 1928854"] There is no general way to know how many file descriptors you've got open, except by keeping track of every Socket, ServerSocket, and FileInputStream you open (and I've probably missed some), and knowing when library methods open these things for you (as Runtime.exec() does). On Linux you can cheat a little by counting the files in /proc/self/fd, and you can check the limit with "ulimit -n". But this seems to like a lot of trouble, I don't see the point of knowing that they will "soon" run out, because you'll get an exception when you attempt to exceed the limit anyway (so why stop sooner). What real problem are you trying to solve? /gordon [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Java
find max number of open file descriptors using java
Top