---restore content starts---
Jinfo (Configuration Info for Java)
The role of Jinfo is to actually view and adjust the parameters of the virtual machine. The-v parameter of the JPS command can be used to view the specified parameter list when the virtual machine is started, but if you want to know the system defaults that are not displayed for the specified parameters, you can only query using the jinfo-flag option in addition to finding the data (if you are limited to JDK1.6 or more versions, use Java -xx:+printflagsfinal viewing the parameter defaults is also a good choice, Jinfo can also print out the contents of the system.getproperties () of the virtual machine process using the-SYSPROPS option.
Java-xx:+printflagsfinal View the default value of the parameter when the virtual machine is started
Jinfo not only has the ability to view parameters, Jinfo can also modify parameters at run time!
Jinfo-flag [+|-] name or-flag name=value
Jinfo Command format:
jinfo [option] pid
And then here's an example, take a look at
Querying for cmsinitiatingoccupancyfraction parameter values
This parameter, what meaning, I can only tell myself temporarily, is in the CMS garbage collector use, when the old age, in so memory ratio, will trigger the CMS recycle
This is the basic jinfo, and this command knows what it's capable of.
Jinfo:java Configuration Information tool