I have a JavaEE application currently deployed on Glassfish for which I have written a load test that can, in less than one hour (for now - speed improvements to the crash are coming) exhaust the JMS connection pool and break Glassfish with the insanely bad message
In-use connections equal max-pool-size and expired max-wait-time. Cannot allocate more connections.
I would like to see which of my JavaEE components leak JMS connections. For memory, I could use a profiler, as well as I could use it for JDBC connections, I guess. But what is the best tool to track opened/closed JMS connections and the components that create them and don't release them ?
Try the imqcmd util to monitor your JMS destinations. It provides basic but usefull commands (list, purge, create ...)
It is located in $GLASSFISH_HOME/mq/bin
Try the followings commands:
./imqcmd list dst
./imqcmd query brk
./imqcmd metrics dst -t q -n jms/myQueue -m rts
-m rts
stands for "Message rates". See documentation for other metrics information (./imqcmd -h ;-) )
Notice: every commands will prompt a username and password. admin/admin are the default username/password (!= asadmin credentials)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With