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.