Two Laptop Bag*
The moose likes Portals and Portlets and the fly likes org.apache.tomcat.jni.Error: 24: Too many open files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "org.apache.tomcat.jni.Error: 24: Too many open files" Watch "org.apache.tomcat.jni.Error: 24: Too many open files" New topic
Author

org.apache.tomcat.jni.Error: 24: Too many open files

Nikhil Sagar
Ranch Hand

Joined: Apr 21, 2012
Posts: 216

i am getting this error
under linux. any idea why ??


OCPJP 6 86%
Alex Belt
Ranch Hand

Joined: Jul 12, 2001
Posts: 57
This is actually an operating system issue. Linux treats everything as a file - if there are too many connections open on the machine, you'll get that message. Have your sys admin look at the max number of open file handles on the system to make sure it isn't set too low. Also, make sure you aren't opening system resources like Sockets and the such and failing to close them - poor programming practices can cause that error as well.

HTH,
Alex
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: org.apache.tomcat.jni.Error: 24: Too many open files
 
Similar Threads
java.net.SocketException: Too many open files
java IOEXCEPTION:too many open files
opening a file for relatively long time
Too many open files error
Java.io.IOException too many open files