G1 garbage collector record

Source: Internet
Author: User

The computer configuration is not high enough, and the JVM is configured on the original basis. The G1 garbage collection in jdk1.7 is occasionally seen, so it is replaced with the G1 garbage collector, which is faster than the previous configuration, in addition, eclipse does not occasionally get stuck when you do not manually click recycle (only for eclipse optimization, compilation for project reasonsCodeUse 1.6.0 _ 30 ). The original configuration parameters are as follows:

-Xms512m-Xmx512m-XX: maxpermsize = 256m-xx: permsize = 256m-server-xx: + useparnewgc

According to the parameters of the G1 collector, the configuration is as follows:

-Xms512m-Xmx512m-XX: maxpermsize = 256m-xx: permsize = 256m-xx: + bytes-XX: + UseG1GC-XX: maxgcpausemillis = 50-xx: gcpauseintervalmillis = 2000-xx: + buffers = 512m-xx: + printgcdetails

I just learned about it on the Internet, but I don't know the specific implementation. If you have any questionsAxe Zheng.

References: http://developer.51cto.com/art/200907/138943.htm

Http://www.infoq.com/cn/articles/jdk7-garbage-first-collector

 

Related Article

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.