File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Tomcat : Too many open files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat : Too many open files" Watch "Tomcat : Too many open files" New topic

Tomcat : Too many open files

Man Pan

Joined: Nov 17, 2004
Posts: 2
I have tomcat app-server running (on Linux) from past 3+ months handling moderate load. I recently an seeing HTTP 500/503 errors. The catalina.out has log entry for " Too many open files". The last change I made was increase the number of threads Tomcat could use and increased the JVM memory.

I checked the number of file descriptors open and they seem to have not exceeded the max limit.

$cat /proc/sys/fs/file-nr
1446 38 524288

Any ideas, what could be wrong or how to debug further will be greatly appreciated.
Here is the excerpt from catalina.out:

Apr 5, 2005 6:15:48 PM acceptSocket
SEVERE: Endpoint ServerSocket[addr=,port=0,localport=8080] ignored exception: Too many open files Too many open files
at Method)
at org.apache.tomcat.util.threads.ThreadPool$
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63858

Moved to the Tomcat forum.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Tomcat : Too many open files
It's not a secret anymore!