Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I observe what's happening under the hood of ActiveMQ?

Tags:

activemq

I'm experiencing an issue with ActiveMQ and would like to trace/view all ActiveMQ activity. The only log file I can find is one associated with persistent data (if this is turned on). Are there any other log files I view or generate to tell me what's happening under the hood of ActiveMQ and why my consumers aren't consuming messages? Any other suggestions?

Thanks in advance!

like image 940
BeachRunnerFred Avatar asked Mar 02 '23 05:03

BeachRunnerFred


2 Answers

activemq has a jmx interface that you can connect to.

this gives us access to consumer counts messages queued dequeue and all sorts of data on memory usage etc.

http://activemq.apache.org/jmx.html

Has all the details to get you started.

I find it excellent in finding out whats going on with activemq.

A quick firing up of jconsole and you will be well on your way to finding out what is going on.

Paul

like image 55
Paul Whelan Avatar answered May 16 '23 09:05

Paul Whelan


Agreed. Also you can add the logging interceptor which helps.

Finally for browsing messages, moving them, creating/deleting queues and sending message I highly recommend the new web console for ActiveMQ, Camel and many other plugins: hawtio

like image 24
James Strachan Avatar answered May 16 '23 08:05

James Strachan