jinfo
Introduction
The jinfo tool can be used to view the extended parameters of a running Java application, including Java system attributes and JVM command line parameters. In addition, jinfo can be used to dynamically modify some parameters of a running JVM.
Installation Mode
Use OpenJDK to install this tool. For BiSheng JDK, it is a built-in tool.
Usage
- If a Java environment is configured, you can directly run the jinfo command.
- If no Java environment is not configured, run the ps -ef | grep java command to find the Java process. Then, switch to the JDK bin directory and run the ./jinfo command.
Syntax:
1jinfo –flags $pid
Common parameters are as follows:
Parameter
Description
-flags
Displays all parameters, including Java System attributes and JVM command line parameters.
-sysprops
Displays the command line.
-flag name=value
Sets the corresponding parameter.
Parent topic: Analysis Tools