Sounds a lot like this one I fixed for 5.12.0: https://issues.apache.org/jira/browse/AMQ-4814
On 08/21/2015 09:45 AM, Christopher Shannon wrote: > The callbacks are in the parent class, Usage. They are used to signal when > the Usage is no longer full. > > On Fri, Aug 21, 2015 at 1:02 AM, Tim Bain <tb...@alumni.duke.edu> wrote: > >> I see no references to a Map or to a field called callbacks in >> >> http://www.grepcode.com/file/repo1.maven.org/maven2/org.apache.activemq/activemq-client/5.11.1/org/apache/activemq/usage/MemoryUsage.java >> >> Can you give more details of what you're seeing? >> On Aug 20, 2015 1:25 PM, "yang.yang.zz" <yang.yang...@outlook.com> wrote: >> >>> Hi: >>> >>> When I tested our product wtih ActiveMQ 5.11.1, we observed a high memory >>> usage spike in a ActiveMQ broker process. >>> >>> This broker has 9G memory configured. It's using memoryCursor to cache >>> messages. But for each Queue it has a memory limit for 200M. >>> >>> Then we observed a high memory usage spike during our test. Having got a >>> heapdump from this broker. We saw 5.89G live content. But 5.62G is >> consumed >>> by a single java class called *org.apache.activemq.usage.MemoryUsage*. >>> Having looked inside, there is a callbacks List in this class which has >> 220 >>> million object. >>> >>> This MemoryUsage instance is monitoring a Queue which has less than 200MB >>> content. Does anyone know why this MemoyUsage has such many object in >> the >>> callbacks List and consumed such a huge amount of memory? >>> >>> Thanks! >>> -Yang >>> >>> >>> >>> -- >>> View this message in context: >>> >> http://activemq.2283324.n4.nabble.com/org-apache-activemq-usage-MemoryUsage-consumes-95-of-the-memory-tp4701250.html >>> Sent from the ActiveMQ - User mailing list archive at Nabble.com. >>> -- Tim Bish Sr Software Engineer | RedHat Inc. tim.b...@redhat.com | www.redhat.com twitter: @tabish121 blog: http://timbish.blogspot.com/