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: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]