jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 31789] New: - Memory leak in ELEvaluator
Date Tue, 19 Oct 2004 21:28:09 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=31789>.
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=31789

Memory leak in ELEvaluator

           Summary: Memory leak in ELEvaluator
           Product: Taglibs
           Version: 1.0.5
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Standard Taglib
        AssignedTo: taglibs-dev@jakarta.apache.org
        ReportedBy: darylb@date.com
                CC: darylb@date.com


This is actually a bug for version 1.0.6 (but I couldn't select that version
because it wasn't listed).

WHAT IS IT?:
     All evaluated expressions are added to the ELEvaluator's
sCachedExpressionStrings map and never removed. This causes a memory leak which
can eventually cause running programs to crash due to an OutOfMemoryError.

WHERE IS IT?:
     org.apache.taglibs.standard.lang.jstl.ELEvaluator.parseExpressionString(String)

TO REPRODUCE:
     Write a simple page that uses a JSTL tag, give it a different
dynamically-generated expression as an attribute value and refresh the page
several times. Eventually you will see the memory climb (through profiling,
system logs or by your process exiting with an OutOfMemoryError).

A POSSIBLE FIX:
     A possible fix would be to use a last-recently-used cache (such as Java
1.4's LinkedHashMap) to ensure that items do not remain in this cache indefinitely.

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


Mime
View raw message