Idea Configuration Optimization

Source: Internet
Author: User

Modify intellij/bin/idea.exe. vmoptions
-Xms512m  -Xmx512m  -Xmn164m  -XX:MaxPermSize=250m  -XX:ReservedCodeCacheSize=64m  -Xverify:none  -Xnoclassgc  -XX:+UseParNewGC  -XX:+UseConcMarkSweepGC  -XX:CMSInitiatingOccupancyFraction=85  -ea  -Dsun.awt.keepWorkingSetOnMinimize=true

-Dsun. AWT. keepworkingsetonminimize = true can minimize idea to the memory occupied by the taskbar. When you return to idea, it can be quickly displayed, rather than gradually displaying the entire interface from the gray interface, speed up the reply to the original interface. -Xverify: None disables Java bytecode verification, which speeds up the loading of classes and removes the need to load classes during startup for verification purposes, shortening the startup time.
-XX: + useparnewgc
Use parallel collection algorithms. Add a very important parameter

-XX:PermSize=128m
The default permsize is only 64 MB, which is definitely not enough for Java processes with the size of idea. Although the maxpermsize set above is very large, it is found that even if the original 64 m world reaches 99%, it is still not resized to the max value. In addition, the default 64 m is used, and the FGC frequency is very high. This can be seen in jstat. Process 2660 is a GC without the permsize parameter. It can be seen that FGC is frequent, ygc is only once, and the startup speed is indeed not fast. Process number 4388 is the GC with parameters added. We can see that the ygc frequency is up, and FGC does not exist at once, so the overall GC time cannot be reduced. It can be clearly felt from the startup speed.



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.