Java Virtual Machine Tools Interface

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.[1]

JPDA architecture

The JVMTI is a native interface of the JVM. A library, written in C or C++, is loaded during the initialization of the JVM.[2] The library has access to the JVM state by calling JVMTI and JNI (Java Native Interface) functions and can register to receive JVMTI events using event handler functions that are called by the JVM when such an event occurs.

JVMTI was defined through the Java Community Process by JSR-163, the specification for the Java Platform Profiling Architecture. The JVMTI replaces the JVMPI (Java Virtual Machine Profiling Interface) and the JVMDI (Java Virtual Machine Debug Interface). The JVMPI and the JVMDI are declared as being deprecated in J2SE 5.0 and were removed in Java SE6.

JVMTI is the lowest-level of the Java Platform Debugger Architecture.

References

  1. Nartovich, Aleksandr; Smye-Rumsby, Adam; Stimets, Paul; Weaver, George; Redbooks, I. B. M. (2007-02-14). IBM Technology for Java Virtual Machine in IBM i5/OS. IBM Redbooks. ISBN 978-0-7384-8605-5.
  2. Waller, Jan (2014-12-19). Performance Benchmarking of Application Monitoring Frameworks. BoD – Books on Demand. ISBN 978-3-7357-7853-6.
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.