What do you do in your routes?

On Sat, Apr 30, 2011 at 12:09 AM, Mike L. <[email protected]> wrote:
> 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 screenprints from the Eclipse Memory Analyzer Tool (MAT).
> The first, ShortestPath, shows at the bottom the DefaultManagementAgent as
> part of the problem; 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, nothing!
>
> So, 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 this
> enabled by default) I did nothing with respect to:
>
> -Dorg.apache.camel.jmx.usePlatformMBeanServer=True
>
>
> Or, by adding a jmxAgent element inside the camelContext element in Spring
> configuration:
>
> <camelContext id="camel" xmlns="http://camel.apache.org/schema/spring";>
>   <jmxAgent id="agent" usePlatformMBeanServer="true"/>
>     ...
> </camelContext>
>
> However, since this is true by default, I'm confused as to why nothing Camel
> related was showing up in the JMX console.
>
> Any thoughts, comments, advice would be welcome.
>
> TIA,
>
> Mike L. (aka patzerbud)



-- 
Claus Ibsen
-----------------
FuseSource
Email: [email protected]
Web: http://fusesource.com
CamelOne 2011: http://fusesource.com/camelone2011/
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to