From users-return-27321-apmail-activemq-users-archive=activemq.apache.org@activemq.apache.org Fri Apr 29 22:07:02 2011 Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E3FD6F8E for ; Fri, 29 Apr 2011 22:07:02 +0000 (UTC) Received: (qmail 58611 invoked by uid 500); 29 Apr 2011 22:07:02 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 58583 invoked by uid 500); 29 Apr 2011 22:07:02 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 58575 invoked by uid 99); 29 Apr 2011 22:07:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Apr 2011 22:07:02 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RFC_ABUSE_POST,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of patzerbud@hotmail.com designates 65.55.90.215 as permitted sender) Received: from [65.55.90.215] (HELO snt0-omc4-s12.snt0.hotmail.com) (65.55.90.215) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Apr 2011 22:06:48 +0000 Received: from SNT105-W55 ([65.55.90.200]) by snt0-omc4-s12.snt0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Fri, 29 Apr 2011 15:06:26 -0700 Message-ID: Content-Type: multipart/mixed; boundary="_52ed738f-8f59-4158-9b6a-5910bdd36015_" X-Originating-IP: [207.250.200.178] From: Mike L. To: Subject: Possible Memory Leak when JMX agent enabled Date: Fri, 29 Apr 2011 17:06:26 -0500 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 29 Apr 2011 22:06:26.0716 (UTC) FILETIME=[AF545DC0:01CC06B9] X-Virus-Checked: Checked by ClamAV on apache.org --_52ed738f-8f59-4158-9b6a-5910bdd36015_ Content-Type: multipart/alternative; boundary="_7b9f21d7-ffc9-457d-913f-60b88c914814_" --_7b9f21d7-ffc9-457d-913f-60b88c914814_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable All: Our production servers are experiencing a fairly severe memory leak - it ta= kes about 12 days to get the dreaded OutOfMemoryExceptions. We use linux (CentOS 5.x) Sun 1.6.0_22 JDK Camel 2.4.0 ActiveMQ 5.3.1 JBoss 4.2.1.GA (I know! It's old.) I've attached two screenprints from the Eclipse Memory Analyzer Tool (MAT). The first=2C ShortestPath=2C shows at the bottom the DefaultManagementAgent= as part of the problem=3B while at the top you'll see EDU.oswego.cs.dl.util.concurrent.ConcurrentReaderHashMap$Entry. I'm not sure which is the "real" culprit. Something else: when I go to the JMX console in JBoss I do not see anything= at all related to Camel. No endpoints=2C nothing! So=2C naturally I disabled JMX in Camel and the problem appears to have gon= e away. Before I disabled JMX in Camel (the default/example configurations have thi= s enabled by default) I did nothing with respect to:=20 -Dorg.apache.camel.jmx.usePlatformMBeanServer=3DTrue Or=2C by adding a jmxAgent element inside the camelContext element in Sprin= g configuration: ... However=2C since this is true by default=2C I'm confused as to why nothing = Camel related was showing up in the JMX console. Any thoughts=2C comments=2C advice would be welcome. TIA=2C Mike L. (aka patzerbud) = --_7b9f21d7-ffc9-457d-913f-60b88c914814_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable All:

Our production servers are experiencing a fairly severe memory = leak - it takes about 12 days to get the dreaded OutOfMemoryExceptions.
= We use linux (CentOS 5.x)
Sun 1.6.0_22 JDK
Camel 2.4.0
ActiveMQ 5.= 3.1
JBoss 4.2.1.GA (I know! It's old.)

I've attached two screenpr= ints from the Eclipse Memory Analyzer Tool (MAT).
The first=2C ShortestP= ath=2C shows at the bottom the DefaultManagementAgent as part of the proble= m=3B while at the top you'll see
EDU.oswego.cs.dl.util.concurrent.Concur= rentReaderHashMap$Entry.
I'm not sure which is the "real" culprit.
Something else: when I go to the JMX console in JBoss I do not see anythi= ng at all related to Camel. No endpoints=2C nothing!

So=2C naturally= I disabled JMX in Camel and the problem appears to have gone away.

= Before I disabled JMX in Camel (the default/example configurations have thi= s enabled by default) I did nothing with respect to:

-Dorg.apache.camel.jmx.usePlatformMBeanServer=3DTrue


Or=2C by adding a jmxAgent element inside the camelContext e= lement in Spring configuration:
<=3BcamelContext id=3D"camel" xmlns=3D"http://camel.apache.org/schema/spring">=3B
<= =3BjmxAgent id=3D"agent" usePlatformMBean= Server=3D"true"/>=3B
...
<=3B/camelContext>=3B

However=2C since this is true by default=2C I'm confused as= to why nothing Camel related was showing up in the JMX console.

Any= thoughts=2C comments=2C advice would be welcome.

TIA=2C

Mike= L. (aka patzerbud)

= --_7b9f21d7-ffc9-457d-913f-60b88c914814_-- --_52ed738f-8f59-4158-9b6a-5910bdd36015_--