tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruce Keats <>
Subject Tomcat 5.5.12 CGI leaking file descriptors.
Date Wed, 01 Feb 2006 16:20:28 GMT
We are running a tomcat server 5.5.12 under Fedora Core 3 with Java
1.5..0update 5 and we have enabled CGI.  We noticed that the number of
descriptors over time was increasing to the point where the VM runs out of
file descriptors.  We think we have found a file descriptor leak in the CGI
code because when we execute the following script, the file descriptors held
by the Java VM increases by 1.


echo "Content-type: text/html"
echo "<html>"
echo "<body>"
echo "</body>"
echo "</html>"

If we run this script in a loop, eventually tomcat runs out of file
descriptors and CGI starts returning HTTP 500 errors.  After some more time,
it looks like the compactor runs and cleans something up.  The number of
file descriptors drops back down to an acceptable level.

Has anyone else seen similar problems?  Does anyone have a fix?

Does anyone know where I can find the JAVA code that handle the CGI?  I will
need to fix this one way or the other.


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