You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Sergey (JIRA)" <ji...@apache.org> on 2012/08/03 13:31:02 UTC

[jira] [Created] (AMQ-3959) Memory leak caused by org.apache.activemq.util.StringArrayEditor

Sergey created AMQ-3959:
---------------------------

             Summary: Memory leak caused by org.apache.activemq.util.StringArrayEditor
                 Key: AMQ-3959
                 URL: https://issues.apache.org/jira/browse/AMQ-3959
             Project: ActiveMQ
          Issue Type: Bug
          Components: JMS client
    Affects Versions: 5.6.0, 5.5.0
         Environment: Ubuntu 12.04 x64
Oracle JDK 1.6.0_32
Tomcat 7.0.28
            Reporter: Sergey
         Attachments: StringArrayEditor_memory_leak.png

Create a web application which connects to an ActiveMQ standalone server, package activemq-core.jar into WAR under WEB-INF/lib.
Deploy the WAR to a Tomcat 7. Then undeploy. In Tomcat manager press "Find leaks" button in "Diagnostics" section. Tomcat will complain that after undeployment some classes are still in memory.
Use profiler to locate WebAppClassLoader, see the screenshot.



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (AMQ-3959) Memory leak caused by org.apache.activemq.util.StringArrayEditor

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AMQ-3959?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13447158#comment-13447158 ] 

Claus Ibsen commented on AMQ-3959:
----------------------------------

I have fixed this, see comments on AMQ-3797.

                
> Memory leak caused by org.apache.activemq.util.StringArrayEditor
> ----------------------------------------------------------------
>
>                 Key: AMQ-3959
>                 URL: https://issues.apache.org/jira/browse/AMQ-3959
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: JMS client
>    Affects Versions: 5.5.0, 5.6.0
>         Environment: Ubuntu 12.04 x64
> Oracle JDK 1.6.0_32
> Tomcat 7.0.28
>            Reporter: Sergey
>              Labels: leak
>         Attachments: StringArrayEditor_memory_leak.png
>
>
> Create a web application which connects to an ActiveMQ standalone server, package activemq-core.jar into WAR under WEB-INF/lib.
> Deploy the WAR to a Tomcat 7. Then undeploy. In Tomcat manager press "Find leaks" button in "Diagnostics" section. Tomcat will complain that after undeployment some classes are still in memory.
> Use profiler to locate WebAppClassLoader, see the screenshot.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (AMQ-3959) Memory leak caused by org.apache.activemq.util.StringArrayEditor

Posted by "Sergey (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQ-3959?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sergey resolved AMQ-3959.
-------------------------

    Resolution: Duplicate
    
> Memory leak caused by org.apache.activemq.util.StringArrayEditor
> ----------------------------------------------------------------
>
>                 Key: AMQ-3959
>                 URL: https://issues.apache.org/jira/browse/AMQ-3959
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: JMS client
>    Affects Versions: 5.5.0, 5.6.0
>         Environment: Ubuntu 12.04 x64
> Oracle JDK 1.6.0_32
> Tomcat 7.0.28
>            Reporter: Sergey
>              Labels: leak
>         Attachments: StringArrayEditor_memory_leak.png
>
>
> Create a web application which connects to an ActiveMQ standalone server, package activemq-core.jar into WAR under WEB-INF/lib.
> Deploy the WAR to a Tomcat 7. Then undeploy. In Tomcat manager press "Find leaks" button in "Diagnostics" section. Tomcat will complain that after undeployment some classes are still in memory.
> Use profiler to locate WebAppClassLoader, see the screenshot.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Comment Edited] (AMQ-3959) Memory leak caused by org.apache.activemq.util.StringArrayEditor

Posted by "Sergey (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AMQ-3959?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13428004#comment-13428004 ] 

Sergey edited comment on AMQ-3959 at 8/3/12 11:40 AM:
------------------------------------------------------

The undeployed web application remain in memory until you re-deploy or re-start. After re-start the reference is replaced by the new StringArrayEditor class loaded by the new WebAppClassLoader. 
The issue doesn't happen when ActiveMQ libraries are in Tomcat shared libs.
                
      was (Author: sgri):
    The undeployed web application remain in memory until you re-deploy or re-start. After re-start the reference is replaced by the new StringArrayEditor class loaded by the new WebAppClassLoader. 
                  
> Memory leak caused by org.apache.activemq.util.StringArrayEditor
> ----------------------------------------------------------------
>
>                 Key: AMQ-3959
>                 URL: https://issues.apache.org/jira/browse/AMQ-3959
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: JMS client
>    Affects Versions: 5.5.0, 5.6.0
>         Environment: Ubuntu 12.04 x64
> Oracle JDK 1.6.0_32
> Tomcat 7.0.28
>            Reporter: Sergey
>         Attachments: StringArrayEditor_memory_leak.png
>
>
> Create a web application which connects to an ActiveMQ standalone server, package activemq-core.jar into WAR under WEB-INF/lib.
> Deploy the WAR to a Tomcat 7. Then undeploy. In Tomcat manager press "Find leaks" button in "Diagnostics" section. Tomcat will complain that after undeployment some classes are still in memory.
> Use profiler to locate WebAppClassLoader, see the screenshot.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (AMQ-3959) Memory leak caused by org.apache.activemq.util.StringArrayEditor

Posted by "Sergey (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQ-3959?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sergey updated AMQ-3959:
------------------------

    Attachment: StringArrayEditor_memory_leak.png

StringArrayEditor is referenced from static collaction ouside of WebAppClassLoader.
                
> Memory leak caused by org.apache.activemq.util.StringArrayEditor
> ----------------------------------------------------------------
>
>                 Key: AMQ-3959
>                 URL: https://issues.apache.org/jira/browse/AMQ-3959
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: JMS client
>    Affects Versions: 5.5.0, 5.6.0
>         Environment: Ubuntu 12.04 x64
> Oracle JDK 1.6.0_32
> Tomcat 7.0.28
>            Reporter: Sergey
>         Attachments: StringArrayEditor_memory_leak.png
>
>
> Create a web application which connects to an ActiveMQ standalone server, package activemq-core.jar into WAR under WEB-INF/lib.
> Deploy the WAR to a Tomcat 7. Then undeploy. In Tomcat manager press "Find leaks" button in "Diagnostics" section. Tomcat will complain that after undeployment some classes are still in memory.
> Use profiler to locate WebAppClassLoader, see the screenshot.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Comment Edited] (AMQ-3959) Memory leak caused by org.apache.activemq.util.StringArrayEditor

Posted by "Sergey (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AMQ-3959?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13427999#comment-13427999 ] 

Sergey edited comment on AMQ-3959 at 8/3/12 11:31 AM:
------------------------------------------------------

StringArrayEditor is referenced from a static collection outside of WebAppClassLoader.
                
      was (Author: sgri):
    StringArrayEditor is referenced from static collaction ouside of WebAppClassLoader.
                  
> Memory leak caused by org.apache.activemq.util.StringArrayEditor
> ----------------------------------------------------------------
>
>                 Key: AMQ-3959
>                 URL: https://issues.apache.org/jira/browse/AMQ-3959
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: JMS client
>    Affects Versions: 5.5.0, 5.6.0
>         Environment: Ubuntu 12.04 x64
> Oracle JDK 1.6.0_32
> Tomcat 7.0.28
>            Reporter: Sergey
>         Attachments: StringArrayEditor_memory_leak.png
>
>
> Create a web application which connects to an ActiveMQ standalone server, package activemq-core.jar into WAR under WEB-INF/lib.
> Deploy the WAR to a Tomcat 7. Then undeploy. In Tomcat manager press "Find leaks" button in "Diagnostics" section. Tomcat will complain that after undeployment some classes are still in memory.
> Use profiler to locate WebAppClassLoader, see the screenshot.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Closed] (AMQ-3959) Memory leak caused by org.apache.activemq.util.StringArrayEditor

Posted by "Sergey (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQ-3959?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sergey closed AMQ-3959.
-----------------------


Closed because this is a duplicate of another issue.
                
> Memory leak caused by org.apache.activemq.util.StringArrayEditor
> ----------------------------------------------------------------
>
>                 Key: AMQ-3959
>                 URL: https://issues.apache.org/jira/browse/AMQ-3959
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: JMS client
>    Affects Versions: 5.5.0, 5.6.0
>         Environment: Ubuntu 12.04 x64
> Oracle JDK 1.6.0_32
> Tomcat 7.0.28
>            Reporter: Sergey
>              Labels: leak
>         Attachments: StringArrayEditor_memory_leak.png
>
>
> Create a web application which connects to an ActiveMQ standalone server, package activemq-core.jar into WAR under WEB-INF/lib.
> Deploy the WAR to a Tomcat 7. Then undeploy. In Tomcat manager press "Find leaks" button in "Diagnostics" section. Tomcat will complain that after undeployment some classes are still in memory.
> Use profiler to locate WebAppClassLoader, see the screenshot.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Comment Edited] (AMQ-3959) Memory leak caused by org.apache.activemq.util.StringArrayEditor

Posted by "Sergey (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AMQ-3959?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13428004#comment-13428004 ] 

Sergey edited comment on AMQ-3959 at 8/3/12 11:41 AM:
------------------------------------------------------

The undeployed web application remains in memory until you re-deploy or re-start. After re-start the reference is replaced by the new StringArrayEditor class loaded by the new WebAppClassLoader. 
The issue doesn't happen when ActiveMQ libraries are in Tomcat shared libs.
                
      was (Author: sgri):
    The undeployed web application remain in memory until you re-deploy or re-start. After re-start the reference is replaced by the new StringArrayEditor class loaded by the new WebAppClassLoader. 
The issue doesn't happen when ActiveMQ libraries are in Tomcat shared libs.
                  
> Memory leak caused by org.apache.activemq.util.StringArrayEditor
> ----------------------------------------------------------------
>
>                 Key: AMQ-3959
>                 URL: https://issues.apache.org/jira/browse/AMQ-3959
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: JMS client
>    Affects Versions: 5.5.0, 5.6.0
>         Environment: Ubuntu 12.04 x64
> Oracle JDK 1.6.0_32
> Tomcat 7.0.28
>            Reporter: Sergey
>         Attachments: StringArrayEditor_memory_leak.png
>
>
> Create a web application which connects to an ActiveMQ standalone server, package activemq-core.jar into WAR under WEB-INF/lib.
> Deploy the WAR to a Tomcat 7. Then undeploy. In Tomcat manager press "Find leaks" button in "Diagnostics" section. Tomcat will complain that after undeployment some classes are still in memory.
> Use profiler to locate WebAppClassLoader, see the screenshot.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (AMQ-3959) Memory leak caused by org.apache.activemq.util.StringArrayEditor

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AMQ-3959?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13447159#comment-13447159 ] 

Claus Ibsen commented on AMQ-3959:
----------------------------------

Sergey, thanks for reporting, and having a screenshot with the evidence.
                
> Memory leak caused by org.apache.activemq.util.StringArrayEditor
> ----------------------------------------------------------------
>
>                 Key: AMQ-3959
>                 URL: https://issues.apache.org/jira/browse/AMQ-3959
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: JMS client
>    Affects Versions: 5.5.0, 5.6.0
>         Environment: Ubuntu 12.04 x64
> Oracle JDK 1.6.0_32
> Tomcat 7.0.28
>            Reporter: Sergey
>              Labels: leak
>         Attachments: StringArrayEditor_memory_leak.png
>
>
> Create a web application which connects to an ActiveMQ standalone server, package activemq-core.jar into WAR under WEB-INF/lib.
> Deploy the WAR to a Tomcat 7. Then undeploy. In Tomcat manager press "Find leaks" button in "Diagnostics" section. Tomcat will complain that after undeployment some classes are still in memory.
> Use profiler to locate WebAppClassLoader, see the screenshot.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (AMQ-3959) Memory leak caused by org.apache.activemq.util.StringArrayEditor

Posted by "Sergey (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AMQ-3959?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13428004#comment-13428004 ] 

Sergey commented on AMQ-3959:
-----------------------------

The undeployed web application remain in memory until you re-deploy or re-start. After re-start the reference is replaced by the new StringArrayEditor class loaded by the new WebAppClassLoader. 
                
> Memory leak caused by org.apache.activemq.util.StringArrayEditor
> ----------------------------------------------------------------
>
>                 Key: AMQ-3959
>                 URL: https://issues.apache.org/jira/browse/AMQ-3959
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: JMS client
>    Affects Versions: 5.5.0, 5.6.0
>         Environment: Ubuntu 12.04 x64
> Oracle JDK 1.6.0_32
> Tomcat 7.0.28
>            Reporter: Sergey
>         Attachments: StringArrayEditor_memory_leak.png
>
>
> Create a web application which connects to an ActiveMQ standalone server, package activemq-core.jar into WAR under WEB-INF/lib.
> Deploy the WAR to a Tomcat 7. Then undeploy. In Tomcat manager press "Find leaks" button in "Diagnostics" section. Tomcat will complain that after undeployment some classes are still in memory.
> Use profiler to locate WebAppClassLoader, see the screenshot.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira