JVM Tuning Parameter memo

Source: Internet
Author: User

Environment: 4G memory, dual-core CPU optimization parameter settings:-Xms2048M initial heap memory size-Xmx2048M maximum heap memory size-Xmn512M New Generation size (Eden zone and two vor zones)-XX: permSize = 256 M initial permanent generation size-XX: MaxPermSize = 256 M maximum permanent generation size-XX: SurvivorRatio = 8 ratio of the Eden and Survivor areas in the new generation-XX: maxTenuringThreshold = 7 Number of times that an object is replicated in the same vor area-XX: GCTimeRatio = 19. Set the percentage of the garbage collection time to the running time. The formula is 1/(1 + n) -Xnoclassgc: Disable garbage collection of Persistent Object-XX: + DisableExplicitGC to disable System. gc ()-XX: + UseParNewGC set the new generation to parallel collection-XX: + UseConcMarkSweepGC use CMS Memory collection-XX: + CMSPermGenSweepingEnabled use CMS Memory to collect persistent generation-XX: + when UseCMSCompactAtFullCollection is full gc, It compresses the old generation to eliminate memory fragments-XX: CMSFullGCsBeforeCompaction = 0 how many times after full gc is performed for memory compression, 0 indicates that every time the-XX: + CMSClassUnloadingEnabled space is not enough, you can unload the class to release the space for FULL GC-XX: CMSInitiatingOccupancyFraction = 70 memory use 70% start CMS collection

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.