Re: Is there a way to get kahadb size using activemq-admin command line tool?

2014-11-11 Thread bansalp
I have checked using jconsole that it do expose some bean saying storepercentage usage in percent. Can I access that using *activemq-admin query --view* command. In java code I am getting that using * BrokerService brokerService = getBrokerService(); SystemUsage systemUsage = brokerService.getSy

Re: Is there a way to get kahadb size using activemq-admin command line tool?

2014-11-11 Thread Tim Bain
There's a Java JMX API if you'd rather use that instead of a RESTful interface. I'm not sure if there's anything similar for Perl; like Andreas, that's outside my area of expertise. On Tue, Nov 11, 2014 at 4:21 AM, Andreas Gies wrote: > Hmmm, > > I am not a Perl expert, but I think the closest

Re: Is there a way to get kahadb size using activemq-admin command line tool?

2014-11-11 Thread Andreas Gies
Hmmm, I am not a Perl expert, but I think the closest you could get is indeed using jolokia to expose the JMX beans via REST and then use Perl or use a Java Program reading the information and dump it to stdout, so that you can parse it from your perl script. There might be perl libs that hel

Re: Is there a way to get kahadb size using activemq-admin command line tool?

2014-11-11 Thread bansalp
Thanks for the information. What am trying to do here is to get this value via a perl script, so is there a way to access this value (using jmx) in perl script? -- View this message in context: http://activemq.2283324.n4.nabble.com/Is-there-a-way-to-get-kahadb-size-using-activemq-admin-comma

Re: Is there a way to get kahadb size using activemq-admin command line tool?

2014-11-11 Thread Andreas Gies
Hi, not sure about the command line (I would guess, no). Normally for these kind of things I use JMX. In my productive applications I have either Jolokia and/or hawtio running in the same JVM, so that I can use simple REST calls to get to the management objects and attributes I am intereste

Re: Is there a way to get kahadb size using activemq-admin command line tool?

2014-11-11 Thread bansalp
ping -- View this message in context: http://activemq.2283324.n4.nabble.com/Is-there-a-way-to-get-kahadb-size-using-activemq-admin-command-line-tool-tp4687052p4687160.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.