Description:
How to profile and debug JBoss application server when either more information is needed beyond the maximum level of debugging available to us, or when JBoss stops writing to the log. This is very good also for finding memory leaks down to the method level.
Solution:
When troubleshooting issues with IM and JBoss, we are most commonly relying on various debugging levels of the application components and/or the application server components. However there can be hangs, memory leaks and performance issues in the application server that will not be logged. At times the application server may just stop writing to the log file altogether, leaving us at a dead end with troubleshooting.
To that end there is a free profiling tool from Eclipse that does not require installation. It monitors various aspects of the java process - e.g. memory usage (to check for any leaks), execution time etc, and it does so by tracing every single method in every class in every package. It is particularly simple to view from the interface itself because there you can refer specifically to the package causing the problem - is it a IM package, a core application server package etc. This is highly important for differentiating between a product problem and a JBoss core problem, and proving this differentiation.
This tool is called Eclipse TPTP (Test and Performance Tools Platform), and it can be downloaded from this location: http://www.eclipse.org/tptp/home/downloads/
Please follow these instructions to get it working: