You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by BugRat Mail System <to...@cortexity.com> on 2000/09/21 18:05:58 UTC

BugRat Report #150 has been filed.

Bug report #150 has just been filed.

You can view the report at the following URL:

   <http://znutar.cortexity.com:8888/BugRatViewer/ShowReport/150>

REPORT #150 Details.

Project: Tomcat
Category: Bug Report
SubCategory: New Bug Report
Class: swbug
State: received
Priority: high
Severity: critical
Confidence: public
Environment: 
   Release: Tomcat 3.2 beta
   JVM Release: 1.1.8
   Operating System: AIX
   OS Release: 4.3
   Platform: RS/6000

Synopsis: 
file descriptor leak in AdaptiveClassLoader

Description:
The getResource method in AdaptiveClassLoader leaks file 
descriptors.  When looping through the elements in the 
repository list, for each one that is a jar file, it opens
a new ZipFile object to see if the requested resource is
located within that jar.  This object is never closed and
the file handle doesn't seem to get closed during object
finalization.  

getResource is called every time a <jsp:useBean/> element
is evaluated, Beans.instantiate is called or the application
calls a variant of getResource from either a Class object
loaded by this class loader or from the class loader itself.