activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torsten Mielke <tors...@fusesource.com>
Subject Re: Getting ActiveMQ Memory statistics
Date Mon, 06 Jun 2011 15:20:09 GMT
In case of an external broker you can connect to the broker
programmatically via JMX and query these broker JMX attributes.
If the broker runs embedded get a handle on the BrokerService from where
you can retrieve the BrokerView (via BrokerService.getAdminView()). 
The BrokerView offers APIs such getMemoryLimit(),
getMemoryPercentUsage(), etc. 

Hope that helps.

Torsten Mielke
FuseSource
tmielke.blogspot.com



On Mon, 2011-06-06 at 07:38 -0700, Aneesh wrote:
> Is there anyway in which i can get the current memory used by ActiveMQ from
> my java code?
> I am not telling about any apps (like Jconsole) which is used for
> profiling..
> 
> Just need to know the current memory used by broker, how much available like
> that.
> Is ActiveMQ exposing any APIs/classes for getting this memory data?
> 
> Thanks
> Aneesh
> 
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/Getting-ActiveMQ-Memory-statistics-tp3577057p3577057.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.



Mime
View raw message