You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by "Tomasz Wysocki (JIRA)" <xm...@xml.apache.org> on 2005/01/20 10:07:19 UTC
[jira] Created: (XMLBEANS-103) XMLBeans - QName thread cache, cause memory leaks
XMLBeans - QName thread cache, cause memory leaks
-------------------------------------------------
Key: XMLBEANS-103
URL: http://issues.apache.org/jira/browse/XMLBEANS-103
Project: XMLBeans
Type: Bug
Versions: Version 1.0.3
Reporter: Tomasz Wysocki
Priority: Minor
XMLBeans class uses thread local variables to store cache of QName objects (QNameCache instance).
In application-server environments where threads are pooled, this causes situation that application using xml-beans library when undeployed is not garbage-collected, because its classloader is reachable from thread local variable.
Possible solution would be to use memory-sensitive techniques using weak or soft references.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org
[jira] Closed: (XMLBEANS-103) XMLBeans - QName thread cache, cause memory leaks
Posted by "Jacob Danner (JIRA)" <xm...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XMLBEANS-103?page=all ]
Jacob Danner closed XMLBEANS-103:
---------------------------------
Fix verified in V2 branch, closing
> XMLBeans - QName thread cache, cause memory leaks
> -------------------------------------------------
>
> Key: XMLBEANS-103
> URL: http://issues.apache.org/jira/browse/XMLBEANS-103
> Project: XMLBeans
> Type: Bug
> Versions: Version 1.0.3
> Reporter: Tomasz Wysocki
> Priority: Minor
> Fix For: Version 2 Beta 2, Version 2
>
> XMLBeans class uses thread local variables to store cache of QName objects (QNameCache instance).
> In application-server environments where threads are pooled, this causes situation that application using xml-beans library when undeployed is not garbage-collected, because its classloader is reachable from thread local variable.
> Possible solution would be to use memory-sensitive techniques using weak or soft references.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org
[jira] Resolved: (XMLBEANS-103) XMLBeans - QName thread cache, cause memory leaks
Posted by "Cezar Andrei (JIRA)" <xm...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XMLBEANS-103?page=history ]
Cezar Andrei resolved XMLBEANS-103:
-----------------------------------
Resolution: Fixed
Fix Version: Version 2 Beta 2
Version 2
Fixed, now all threadlocals should be null or contain soft references.
> XMLBeans - QName thread cache, cause memory leaks
> -------------------------------------------------
>
> Key: XMLBEANS-103
> URL: http://issues.apache.org/jira/browse/XMLBEANS-103
> Project: XMLBeans
> Type: Bug
> Versions: Version 1.0.3
> Reporter: Tomasz Wysocki
> Priority: Minor
> Fix For: Version 2 Beta 2, Version 2
>
> XMLBeans class uses thread local variables to store cache of QName objects (QNameCache instance).
> In application-server environments where threads are pooled, this causes situation that application using xml-beans library when undeployed is not garbage-collected, because its classloader is reachable from thread local variable.
> Possible solution would be to use memory-sensitive techniques using weak or soft references.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org