## jvm knowledge piecemeal consolidation

1. Memory configuration

  idea installation directory \ bin \ idea.exe.vmoptions and idea64.exe.vmoptions can see the initial configuration:

  • -Xms128m (initial setting memory, increase this value can improve the startup speed of Java programs)
  • -Xmx512m, (set the maximum memory, this value can be reduced to improve the frequency of the memory Garage collected, to improve program performance)
    native memory to 8G, respectively, attempt to -Xms256m    -Xmx1024m

Setting steps:

  idea to start Interface -> configure -> edit custom VM options accordingly modified, modified can be in C: View \ Users \ CaoPu \ .IntelliJIdea2019.2 \ config \ idea64.exe.vmoptions;

  Explanation: C: \ the Users \ CaoPu \ .IntelliJIdea2019.2 idea is to save various configurations directory, restart idea when you first started or the directory is removed, it will regenerate the directory.

Guess you like

Origin www.cnblogs.com/ezreal61/p/11778118.html