Credit where it is due:
This and other helpful WebLogic administration / monitoring tips can be found in
the great WebLogic Server 12c Distinctive Recipes book by Frank Munz.
jolokia
Jolokia is a great open source tool that provides, amongst other things, a RESTful interface to MBeans in JEE Containers. My specific need is WebLogic queue monitoring and jolokia is great for this. I have the following:
JMS Server: jms-server-1
JMS Module: jms-module-1
WebLogic Server: AdminServer (not recommended for production)
JMS Queue: indexQueue
By installing jolokia as a war (dropping the war file in autodeploy directory if running in development mode) I can get information about my queue by navigating to the following url:
http://localhost:7001/jolokia-war-1.2.1/read/com.bea:JMSServerRuntime=jms-server-1,Name=jms-module-1!!indexQueue,ServerRuntime=AdminServer,Type=JMSDestinationRuntime/MessagesCurrentCount,MessagesHighCount,MessagesReceivedCount
Sample JSON Output:
{ "timestamp":1399478460, "status":200, "request":{ "mbean":"com.bea:JMSServerRuntime=jms-server-1,Name=jms-module-1!indexQueue,ServerRuntime=AdminServer,Type=JMSDestinationRuntime", "attribute":[ "MessagesCurrentCount", "MessagesHighCount", "MessagesReceivedCount" ], "type":"read" }, "value":{ "MessagesHighCount":0, "MessagesCurrentCount":0, "MessagesReceivedCount":0 } }
Advertisements