You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by "Dimitry Gerasimenko (JIRA)" <xm...@xml.apache.org> on 2005/04/25 20:09:27 UTC

[jira] Created: (XMLBEANS-148) Variables (mainly stacks/queues) declared as ThreaLocal lead to memory leaks when XMLBeans are used in classloaders other than the system classloader.

Variables (mainly stacks/queues) declared as ThreaLocal lead to memory leaks when XMLBeans are used in classloaders other than the system classloader.
------------------------------------------------------------------------------------------------------------------------------------------------------

         Key: XMLBEANS-148
         URL: http://issues.apache.org/jira/browse/XMLBEANS-148
     Project: XMLBeans
        Type: Bug
    Versions: Version 1.0.3, Version 1.0.3 (jdk1.3 port), Version 1.0.4, Version 1.0.4 (jdk1.3 port)    
 Environment: W2K Pro, WebLogic Server 8.1.4
    Reporter: Dimitry Gerasimenko


Variables (mainly stacks/queues) declared as ThreaLocal lead to memory leaks when XMLBeans are used in classloaders other than the system classloader (like in a servlet container).

This issue was encountered and fixed in v2 (see submission 153813) by using SoftReferences which allowed garbage collector can unload XMLBeans classes when memory is low.

The fix in v1 should be similar to fix in v2. There are some additional classes which need to be changed.

-- 
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-148) Variables (mainly stacks/queues) declared as ThreaLocal lead to memory leaks when XMLBeans are used in classloaders other than the system classloader.

Posted by "Radu Preotiuc-Pietro (JIRA)" <xm...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XMLBEANS-148?page=all ]
     
Radu Preotiuc-Pietro resolved XMLBEANS-148:
-------------------------------------------

    Resolution: Fixed

Fixed in V1 line, SVN revision 169362.

> Variables (mainly stacks/queues) declared as ThreaLocal lead to memory leaks when XMLBeans are used in classloaders other than the system classloader.
> ------------------------------------------------------------------------------------------------------------------------------------------------------
>
>          Key: XMLBEANS-148
>          URL: http://issues.apache.org/jira/browse/XMLBEANS-148
>      Project: XMLBeans
>         Type: Bug
>     Versions: Version 1.0.4, Version 1.0.4 (jdk1.3 port), Version 1.0.3, Version 1.0.3 (jdk1.3 port)
>  Environment: W2K Pro, WebLogic Server 8.1.4
>     Reporter: Dimitry Gerasimenko
>  Attachments: permGenBug.diff
>
> Variables (mainly stacks/queues) declared as ThreaLocal lead to memory leaks when XMLBeans are used in classloaders other than the system classloader (like in a servlet container).
> This issue was encountered and fixed in v2 (see submission 153813) by using SoftReferences which allowed garbage collector can unload XMLBeans classes when memory is low.
> The fix in v1 should be similar to fix in v2. There are some additional classes which need to be changed.

-- 
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] Updated: (XMLBEANS-148) Variables (mainly stacks/queues) declared as ThreaLocal lead to memory leaks when XMLBeans are used in classloaders other than the system classloader.

Posted by "Dimitry Gerasimenko (JIRA)" <xm...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XMLBEANS-148?page=all ]

Dimitry Gerasimenko updated XMLBEANS-148:
-----------------------------------------

    Attachment: permGenBug.diff

This patch should fix the bug in v1. 

> Variables (mainly stacks/queues) declared as ThreaLocal lead to memory leaks when XMLBeans are used in classloaders other than the system classloader.
> ------------------------------------------------------------------------------------------------------------------------------------------------------
>
>          Key: XMLBEANS-148
>          URL: http://issues.apache.org/jira/browse/XMLBEANS-148
>      Project: XMLBeans
>         Type: Bug
>     Versions: Version 1.0.3, Version 1.0.3 (jdk1.3 port), Version 1.0.4, Version 1.0.4 (jdk1.3 port)
>  Environment: W2K Pro, WebLogic Server 8.1.4
>     Reporter: Dimitry Gerasimenko
>  Attachments: permGenBug.diff
>
> Variables (mainly stacks/queues) declared as ThreaLocal lead to memory leaks when XMLBeans are used in classloaders other than the system classloader (like in a servlet container).
> This issue was encountered and fixed in v2 (see submission 153813) by using SoftReferences which allowed garbage collector can unload XMLBeans classes when memory is low.
> The fix in v1 should be similar to fix in v2. There are some additional classes which need to be changed.

-- 
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