JVM command-line options and GC logs

Source: Internet
Author: User

First, set the parameters

When using the Eclipse compiler, you can set the parameters of the virtual machine in the following ways:



Settings for the specific parameters:

In this case, we'll take the time of printing and recycling information.




Second, printing information interpretation:



Third, some common JVM parameters


-xx:+printgctimestamps:

Print this garbage collection time that the JVM started running

-xx:+printgcdeatils

Print details about garbage collection


-xloggc:<filename>

Output garbage collection information to a specified file


-xx:+printgcdatestamps

You need to print a timestamp option in the form of a calendar


-xx:+printgcapplicationstoppedtime

-xx:+printgcapplicationconcurrenttime

The time that the printing application blocked due to the VM Security point Operation and the elapsed time between the two security point operations

-xx:+printsafepointstatistics

The safe points of garbage collection can be separated from other safe points




Reference: The authoritative guide to Java performance optimization


Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

JVM command-line options and GC logs

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.