tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gnath <>
Subject Tomcat 6.0.35-SocketException: Too many open files issue with
Date Sun, 22 Jan 2012 08:01:28 GMT

We have been seeing "SocketException: Too many open files" in production environment(Linux
OS running Tomcat 6.0.35 with sun's JDK 1.6.30) every day and requires a restart of Tomcat.
When this happened for the first time, we searched online and found people suggesting to increase
the file descriptors size and we increased to 4096. But still the problem persists.  We have
the Orion App Server also running on the same machine but usually during the day when we check
the open file descriptor by command: ls -l /proc/PID/fd, its always less than 1000 combined 
for both Orion and Tomcat. 

Here is the exception we see pouring in the logs once it starts: This requires us to kill
java process and restart tomcat. Our Tomcat configuration maxThreadCount is 500 with minSpareThreads=50
in server.xml

SEVERE: Socket accept failed Too many open files
        at Method)

ulimit -a gives for the user where Tomcat is running.

open files                      (-n) 4096

Please let me know what could be the issue here and how can i resolve this 'Too many open
files' issue.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message