Re: Get Number of connection from all host to my activemq broker.

2014-11-19 Thread artnaseef
JMX has all the information needed. Another approach - outside the JVM - netstat. Something like this may work: netstat -an | grep 61616 Then use awk or the like to pull out the remote (client) IP address and then sort | uniq -c to get the counts. -- View this message in context: http:/

Re: Get Number of connection from all host to my activemq broker.

2014-11-14 Thread bansalp
Thanks Tim, This is really resourceful, I will try this. Thanks, --bansalp -- View this message in context: http://activemq.2283324.n4.nabble.com/Get-Number-of-connection-from-all-host-to-my-activemq-broker-tp4687405p4687459.html Sent from the ActiveMQ - User mailing list archive at Nabble.co

Re: Get Number of connection from all host to my activemq broker.

2014-11-14 Thread Tim Bain
Configure the broker to expose JMX status ( http://activemq.apache.org/jmx.html), if you haven't already done so. Then make sure you understand what's in the JMX beans; an easy way to do that is to attach JConsole to the broker and navigate through the MBeans tab. Once you've done this, you shoul

Re: Get Number of connection from all host to my activemq broker.

2014-11-14 Thread Andreas Gies
Hi if you want a view by host, you have to iterate over the Client Connection MBeans and group by the client’s address. Best regards Andreas > On 13 Nov 2014, at 18:04, bansalp wrote: > > I can get currentConnection count using activemq-admin query --view > CurrentConnectionsCount jmxurl...

Re: Get Number of connection from all host to my activemq broker.

2014-11-14 Thread Andreas Gies
Hi Tim, AFAIK, the ClientConnectors are the actual server ports whereas the ClientConnections are the currently connected clients. Best regards Andreas > On 13 Nov 2014, at 17:28, Tim Bain wrote: > > Looking at the documentation for activemq-admin ( > http://activemq.apache.org/activemq-com

Re: Get Number of connection from all host to my activemq broker.

2014-11-13 Thread bansalp
Can you please guide me on how can this be achieved using JMX api. (for now lets forget whether values are right or wrong). Thanks, --bansalp -- View this message in context: http://activemq.2283324.n4.nabble.com/Get-Number-of-connection-from-all-host-to-my-activemq-broker-tp4687405p4687430.ht

Re: Get Number of connection from all host to my activemq broker.

2014-11-13 Thread Tim Bain
Right, that's why I said that I'm not sure you'll be able to do this using the activemq-admin console (though maybe someone else will know of a way), and that I believe that it can be done using the Java JMX MBeans API plus some custom Java code to group/count the results. But as I said, I've seen

Re: Get Number of connection from all host to my activemq broker.

2014-11-13 Thread bansalp
I can get currentConnection count using activemq-admin query --view CurrentConnectionsCount jmxurl... But I want number of client from each host as well. Thanks, --bansalp -- View this message in context: http://activemq.2283324.n4.nabble.com/Get-Number-of-connection-from-all-host-to-my-

Re: Get Number of connection from all host to my activemq broker.

2014-11-13 Thread Tim Bain
Looking at the documentation for activemq-admin ( http://activemq.apache.org/activemq-command-line-tools-reference.html), I don't see a way to get this information without using JMX, but maybe someone knows of a way to do it. If you can't find a way to do this via activemq-admin, you should be abl