activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From emersonf <>
Subject Possible memory leak in statistics gathering
Date Sat, 16 May 2009 11:13:04 GMT


I've been running some load tests on a Spring Integration system backed by
ActiveMQ 5.2.0. I noticed that one of my application components was leaking
memory, and heap analysis showed this memory to be statistics related. In particular, instances
of CountStatisticImpl and TimeStatisticImpl are being created at an alarming
rate, and they're not being garbage collected.

The pertinent behavior of Spring Integration
(DefaultMessageListenerContainer, for those who care) is that it creates a
fixed number of sessions on a single connection, and then a fixed number of
message consumers on those sessions. These sessions and consumers are kept
for the lifetime of the application. A message producer is created for each
outgoing message.

I have already disabled statistics on the broker (enableStatistics="false"),
but the problem persists. Is there any way to disable statistics on the
broker's clients?

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message