Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
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

Win a copy of The Software Craftsman this week in the Agile forum!
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: 62298

Moved to the Tomcat forum.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Have you tried LearnNowOnline?
subject: Tomcat : Too many open files