Jinfo:java Configuration Information tool

Source: Internet
Author: User

---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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.