- "jinfo" Command


How to run "jinfo" command from JDK tools.jar file?

✍: FYIcenter


"jinfo" command allows you to print out general information of a given JVM process on your computer system.

"jinfo" command is supported by the lib\tools.jar JAR file JDK 1, 2, 3, 4, 5, 6, 7, and 8.

You can run the "jinfo" command using the JDK tools.jar file as described below using JDK 8 as an example:

C:\fyicenter>set JDK_HOME=\fyicenter\jdk-1.8.0_191

C:\fyicenter>%JDK_HOME%\bin\java -cp %JDK_HOME%\lib\tools.jar

    jinfo <option> <pid>
       (to connect to a running process)

where <option> is one of:
    -flag <name>         to print the value of the named VM flag
    -flag [+|-]<name>    to enable or disable the named VM flag
    -flag <name>=<value> to set the named VM flag to the given value
    -h | -help           to print this help message


⇒ - "jps" Command

⇐ - "jcmd" Command

⇑ Tools Supported from JDK 8- JAR Files

⇑⇑ FAQ for JDK (Java Development Kit)

2019-11-21, 1008👍, 0💬