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=41059>.
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=41059





------- Additional Comments From [EMAIL PROTECTED]  2006-11-29 06:05 -------
Here is a patch that uses a system property to disable this feature.  The 
patch was made against tomcat 5.5.20 source.

--- WebappClassLoader.java.orig 2006-09-12 11:12:42.000000000 -0400
+++ WebappClassLoader.java      2006-11-29 09:03:42.000000000 -0500
@@ -163,7 +163,12 @@ public class WebappClassLoader
      * resources.
      */
     boolean antiJARLocking = false;
-
+
+    /**
+     * Use clearReferences experimental code to deal with possible memory 
leaks.
+     */
+    private static final boolean ENABLE_CLEAR_REFERENCES = Boolean.valueOf
(System.getProperty
("org.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES", "true"
)).booleanValue();
+

     // ----------------------------------------------------------- 
Constructors

@@ -1489,7 +1494,9 @@ public class WebappClassLoader

         // Clearing references should be done before setting started to
         // false, due to possible side effects
-        clearReferences();
+        if(ENABLE_CLEAR_REFERENCES) {
+            clearReferences();
+        }

         started = false;


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

Reply via email to