jinfo(Configuration Info for Java) 命令的作用是实时的查看和调整虚拟机的参数。
命令格式:
jinfo [option] pid
Options
no-option
Prints both command-line flags and system property name-value pairs.
-flag name
Prints the name and value of the specified command-line flag.
-flag [+|-]name
enables or disables the specified Boolean command-line flag.
-flag name=value
Sets the specified command-line flag to the specified value.
-flags
Prints command-line flags passed to the JVM.
-sysprops
Prints Java system properties as name-value pairs.
-h or -help
Prints a help message
官方文档:http://docs.oracle.com/javase/8/docs/technotes/tools/unix/jinfo.html