tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 21448] New: - memory leak in PageContextImpl
Date Wed, 09 Jul 2003 20:55:31 GMT
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=21448>.
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=21448

memory leak in PageContextImpl

           Summary: memory leak in PageContextImpl
           Product: Tomcat 4
           Version: 4.1.24
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Jasper
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: ivanfm@os2brasil.com.br


When an exception occurr in a JSP page, the stackwriter is not cleared, and this
can cause memory leaks.
This patch clear stackWriter when the page is released.

Index: jasper/src/share/org/apache/jasper/runtime/PageContextImpl.java
===================================================================
RCS file:
/home/cvspublic/jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/runtime/PageContextImpl.java,v
retrieving revision 1.17
diff -u -r1.17 PageContextImpl.java
--- jasper/src/share/org/apache/jasper/runtime/PageContextImpl.java     6 May
2002 23:32:42 -0000       1.17
+++ jasper/src/share/org/apache/jasper/runtime/PageContextImpl.java     9 Jul
2003 20:47:31 -0000
@@ -195,6 +195,7 @@
        session      = null;

        attributes.clear();
+       stackWriter.clear();
     }

     public Object getAttribute(String name) {

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


Mime
View raw message