I've used valgrind to find digging out memory leaks and profiling, and was asked for a similar profiling tool, to provide usage scenarios for the virtual machine on one of the projects I've been working on... :
JVMTI is one such Tool interface for profiling and debugging and monitoring (I rememeber JVMDI, and JVMPI used in Sun Microsystem's CDC's earlier versions),a nd the latest CDC Hotspot Implementation 1.1.2 has both of them clubbed as JVMTI.
As per the wiki:
Java Virtual Machine Tool Interface (JVMTI, or more properly, JVM TI) was introduced in J2SE 5.0 (Tiger). This interface allows a program to inspect the state and to control the execution of applications running in the Java Virtual Machine (JVM). JVMTI is designed to provide an Application Programming Interface (API) for the development of tools that need access to the state of the JVM. Examples for such tools are debuggers or profilers.
IBM's site gives a good description of the usage as well
Using the JVMTI
One may use the JVMTI for profiling and debugging:
JVMTI is one such Tool interface for profiling and debugging and monitoring (I rememeber JVMDI, and JVMPI used in Sun Microsystem's CDC's earlier versions),a nd the latest CDC Hotspot Implementation 1.1.2 has both of them clubbed as JVMTI.
As per the wiki:
Java Virtual Machine Tool Interface (JVMTI, or more properly, JVM TI) was introduced in J2SE 5.0 (Tiger). This interface allows a program to inspect the state and to control the execution of applications running in the Java Virtual Machine (JVM). JVMTI is designed to provide an Application Programming Interface (API) for the development of tools that need access to the state of the JVM. Examples for such tools are debuggers or profilers.
IBM's site gives a good description of the usage as well
Using the JVMTI
One may use the JVMTI for profiling and debugging:
- Memory Management
- Thread
- Thread Group
- Stack Frame
- Heap
- Local Variable
- Breakpoint
- Watched Field
- Class
- Object
- Field
- Method
- Raw Monitor
- JNI Function Interception
- Event Management
- Extension Mechanism
- Capability
- Timers
- System Properties