ASF Bugzilla – Attachment 14584 Details for
Bug 33711
Memory leak (classloader) with Log4J and Single Sign On.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Call recycle on all sessions (passivated or expired) on stop
patch.txt (text/plain), 1.29 KB, created by
Remy Maucherat
on 2005-03-29 16:39:42 UTC
(
hide
)
Description:
Call recycle on all sessions (passivated or expired) on stop
Filename:
MIME Type:
Creator:
Remy Maucherat
Created:
2005-03-29 16:39:42 UTC
Size:
1.29 KB
patch
obsolete
>Index: StandardManager.java >=================================================================== >RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/session/StandardManager.java,v >retrieving revision 1.28 >diff -u -r1.28 StandardManager.java >--- StandardManager.java 7 Feb 2005 21:56:32 -0000 1.28 >+++ StandardManager.java 29 Mar 2005 14:38:21 -0000 >@@ -556,6 +556,8 @@ > session.expire(false); > } catch (Throwable t) { > ; >+ } finally { >+ session.recycle(); > } > } > >@@ -670,12 +672,16 @@ > Session sessions[] = findSessions(); > for (int i = 0; i < sessions.length; i++) { > StandardSession session = (StandardSession) sessions[i]; >- if (!session.isValid()) >- continue; > try { >- session.expire(); >+ if (session.isValid()) { >+ session.expire(); >+ } > } catch (Throwable t) { > ; >+ } finally { >+ // Measure against memory leaking if references to the session >+ // object are kept in a shared field somewhere >+ session.recycle(); > } > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 33711
:
14379
|
14584
|
14593