1, on behalf of IntelliJ idea display content
2. Open idea.vmoptions File
Path is contens--bin--idea.vmoptions
A copy of the backup original configuration is copied before the modification
Original Configuration
The modified configuration
3, the meaning of the contents of the document
-xms128m
-xmx2048m
-xx:permsize=128m
-xx:maxpermsize=1024m
-xx:reservedcodecachesize=1024m
-xx:+usecompressedoops
-ea
-dsun.io.usecanoncaches=false
-dsun.awt.keepworkingsetonminimize=true
-djava.net.preferipv4stack=true
-djsse.enablesniextension=false
-xx:+usecodecacheflushing
-xx:+useconcmarksweepgc
-xx:softreflrupolicymspermb=50
-vmargs: description is followed by the parameters of the vm-xms128m: virtual machine occupies the System's minimum memory-xmx2048m: virtual machine occupies the System's maximum memory-xx:permsize: minimum heap size. Generally reported insufficient memory, is said that this is too small, heap space remaining less than 5% will be warned, it is recommended to set this slightly larger, but depending on the size of your machine memory to Set-xx:maxpermsi Ze: Maximum Heap Size. It's a little bit bigger. IntelliJ idea will take up memory to do some faster work, improve our development efficiency, and avoid some big items that will prompt memory overflow.
Mac OS System build Java EE environment < four > IntelliJ Idea memory optimization