You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2003/03/11 14:01:50 UTC

DO NOT REPLY [Bug 17873] New: - jar_cache files that are deleted are kept open by the tomcat java process

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17873>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17873

jar_cache files that are deleted are kept open by the tomcat java process

           Summary: jar_cache files that are deleted are kept open by the
                    tomcat java process
           Product: Tomcat 4
           Version: 4.1.12
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: ovheimar@online.no


This leads to an out of file descriptor error on our setup, we  have 10 webapps 
deployed and ca 40 jar files in each web app. I know that I can raise the file 
descriptor limit on Linux, but I still don't see why these file handles should 
be kept open if the files don't exist.. In our setup with 10 webapps on one 
tomcat server it holds 274 open file descriptors to jar_cache files, when the 
default limit on Linux then is ca 1000 open files pr process this is a 
significant %.

example listing from proc/pid/fd

ls -l | grep .tmp /proc/1040/fd

lr-x------    1 tomcat   users          64 Mar 11 13:53 990 -
> /home/tomcat/tomcat/temp/jar_cache49400.tmp (deleted)
lr-x------    1 tomcat   users          64 Mar 11 13:53 991 -
> /home/tomcat/tomcat/temp/jar_cache49402.tmp (deleted)
lr-x------    1 tomcat   users          64 Mar 11 13:53 992 -
> /home/tomcat/tomcat/temp/jar_cache49405.tmp (deleted)
lr-x------    1 tomcat   users          64 Mar 11 13:53 993 -
> /home/tomcat/tomcat/temp/jar_cache49403.tmp (deleted)
lr-x------    1 tomcat   users          64 Mar 11 13:53 994 -
> /home/tomcat/tomcat/temp/jar_cache49404.tmp (deleted)
lr-x------    1 tomcat   users          64 Mar 11 13:53 995 -
> /home/tomcat/tomcat/temp/jar_cache49410.tmp (deleted)
lr-x------    1 tomcat   users          64 Mar 11 13:53 996 -
> /home/tomcat/tomcat/temp/jar_cache49406.tmp (deleted)
lr-x------    1 tomcat   users          64 Mar 11 13:53 997 -
> /home/tomcat/tomcat/temp/jar_cache49407.tmp (deleted)
lr-x------    1 tomcat   users          64 Mar 11 13:53 998 -
> /home/tomcat/tomcat/temp/jar_cache49408.tmp (deleted)
lr-x------    1 tomcat   users          64 Mar 11 13:53 999 -
> /home/tomcat/tomcat/temp/jar_cache49409.tmp (deleted)

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org