commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 35900] New: - Memory Leak: EL Cache entries never removed.
Date Wed, 27 Jul 2005 15:45:31 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=35900>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=35900

           Summary: Memory Leak: EL Cache entries never removed.
           Product: Commons
           Version: 1.0 Final
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: EL
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: balexander@informative.com


This bug refers to the two caches on ExpressionEvaluatorImpl,
sCachedExpressionStrings, but primarily sCachedExpectedTypes.

Here is a use case to illustrate the problem.  A web application typically
creates 1,000 different objects of classes it defines using the EL language, and
PropertyEditor's. A Tomcat instance is run with 5 of these web applications.
Each time one of them is reloaded, a new classloader is created for the web
application, so a new set of 1,000 objects is created in the cache.  The old
objects, and objects they point to (e.g. class and classloader objects), are
never garbage collected. The only way to recover the associated memory is to
stop and restart Tomcat.

There are many possible solutions.  A simple one would be to age instances out
of the caches after a fixed period of time (say one hour). It would be nice if
whatever cache controls are provided are configurable.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message