Skip to main content

JMS management

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
2 replies [Last post]
el_eduardo
Offline
Joined: 2011-04-22

Sorry for the stupid question, I am googling right now but I guess there are some experts here than can help.

I am trying to get the current size (number of messages) and how fast they are being processed (unsing MDBs). I cannot do any code changes right now so I am thinking between the built-in monitoring, asadmin or some of the mq commands

any idea how to do this?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Gustavo Henriqu...
Offline
Joined: 2011-10-27

You can use command line OpenMq commands.
But, I think the best way is monitoring JMS managed beans.
For that, you may use jconsole to access the JMX server (8686 port by default).
Inside JMX sever, search for the jmsserver managed beans.
You will see options Destination -> q -> queue name -> Monitor.

nigeldeakin
Offline
Joined: 2007-10-12

>>
>> I am trying to get the current size (number of messages) and how fast they
>> are being processed (unsing MDBs). I cannot do any code changes right now so
>> I am thinking between the built-in monitoring, asadmin or some of the mq
>> commands
>>

The simplest way to do this is to use the Message Queue "imqcmd" command-line utility
http://docs.oracle.com/cd/E18930_01/html/821-2438/gheav.html

The command "imqcmd list dst" will list the number of messages in a destination

For performance information, look at the "iqcmd metrics" command, described at
http://docs.oracle.com/cd/E18930_01/html/821-2438/aeoiu.html#scrolltoc
This has lots of options but it allows you to display metrics information for a specific queue or topic (e.g. bytes/sec
or messages/sec).

The imqcmd command is located in mq/bin under your GlassFish installation.

Nigel