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
file
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.

#!/bin/sh

echo "Content-type: text/html"
echo
echo "<html>"
echo "<body>"
date
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.

Bruce

Reply via email to