Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Nikhil Sagar
Ranch Hand
Posts: 216
Java Linux Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am getting this error
under linux. any idea why ??
 
Alex Belt
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic