JVM TI

JVM TI - JVM Tool Interface

Native libraries that use JVM TI and are loaded into the JVM via the -agentlib, -agentpath, or -Xrun (deprecated) interfaces, are called Agents.

JVM TI - load an agent at runtime

jcmd $PID JVMTI.agent_load $native_agent_path

Native agent is a shared library. (.so on Linux)

Samples

Agent