Prerequisites for Object Instance Tracking
- Review Java Supported Environments for information about platform support for object instance tracking.
- For JVMs prior to Java 9, object instance tracking uses
tools.jar. If your application runs with the JDK,tools.jarshould be already available. If you are running with the JRE, you must addtools.jarto <JRE_HOME>/lib/extand restart the JVM. You can findtools.jarin <JAVA_HOME>/lib/tools.jar. - In some cases, you might also need to copy
libattach.so(Linux) orattach.dll(Windows) from your JDK to your JRE. - Depending on the JDK version, you may also need to specify the classpath as shown below (along with other
-jaroptions). - For Java 9 or later, JEP220 moved the capabilities needed by OIT to the Core Java runtime, therefore
tools.jaris no longer necessary. If your application runs with JDK9+, jdk.jcmd is already available. If you are running with the JRE, you must add jdk.jcmd to <JRE_HOME>/bin and <JRE_HOME>/lib using jlink.