Multithreading - out of memory --- processing: [idea] to increase the idea configuration memory allocation, so that the project start up faster!

[Idea] to increase the idea configuration memory allocation, so that the project start up faster!

 Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/zhang18330699274/article/details/83993056

Increasing the idea of memory allocation, so that the project start up faster!
Work, every change something needs to wait long, because the project takes a long time to start inadvertently reduces the work efficiency. Some people say that you can use plug-ins to achieve hot deployment. Of course, you can also use the following ways to solve, then the idea is to increase the memory allocation. Next, look at the steps.

1, open idea of ​​the installation directory (Right-click to open the install icon on the desktop position)

Navigate to the bin file is found idea64.exe.vmoptions bin folder
Here Insert Picture Description
2, right-click using the editor to open the original settings are as follows

-Xms128m
-Xmx750m
-XX:ReservedCodeCacheSize=240m
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-ea
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow

3, after revised to

-Xms512m
-Xmx2048m
-XX:ReservedCodeCacheSize=480m
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-ea
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow

4, the meaning of each parameter

parameter Parameter Description
-Xms512m Set the memory size at the beginning of IDEA, improve the startup speed of Java programs.
-Xmx2048m IDEA set maximum amount of memory, increase this value, it is possible to reduce the frequency of the memory Garage collected, to improve program performance.
-XX:ReservedCodeCacheSize=480m Reserved memory the code occupies.

Guess you like

Origin www.cnblogs.com/fearDoNothingOneLife/p/11091166.html