« BigIP: Botkilling iRule | Main | Extended Validation SSL Certificates: An Easy Way to Bust the Green Bar »

11/25/2008

JBoss: Remotely Generating Thread Dumps With JMXConsole

If you ever have a need to generate a thread dump in order to try and figure out what might be going wrong with your jboss application server, you can generate them remotely using the built-in JMXConsole.

A few months ago, I really hated the built-in jmxconsole--mostly, it turns out, due to ignorance on my part. Now that I've getting more acclimated to using it, it's actually quite useful.

Simply access your server using the jmx-console URL: http://$server_name/jmx-console/ (which I hope you've password protected!). Then scroll down to the section labeled jboss.system. Select the type=ServerInfo link and you will see a page listing lots of useful information in a table listing default paths, jvm version information, etc. If you then scroll down beyond the table, there are some interesting mbeans that you can invoke. The one that will generate the remote thread dump is labeled: java.lang.String listThreadDump(). Click the Invoke button and the thread dump will be generated and displayed in-browser. Pretty neat!

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a01156fbc6fe6970c0115722882b2970b

Listed below are links to weblogs that reference JBoss: Remotely Generating Thread Dumps With JMXConsole:

Comments

Alibris connects people who love books, music, and movies to thousands of independent sellers around the world. Search over 60 million used & new books, music, & movies to find great deals!



Click here to get Comodo Internet Security Pro at 50% Off

30% off select Xbox games from the Microsoft Store with promo code: CLR-MSFT-Games-30%. Offer valid through March 31st.

Webroot Software Inc.


Follow techstacks on Twitter


Add to favourite links

Add to Google Reader or Homepage

Subscribe in NewsGator Online

Add to netvibes

Subscribe in Bloglines

Subscribe to Blogging Techstacks in Rojo

Add Blogging Techstacks to Pageflakes

Add Blogging Techstacks to fwicki

Tip Jar

For Donations

Tip Jar
Creative Commons Attribution-ShareAlike 3.0 Unported
Powered by WebRing.