-xms
|
The amount of heap memory initially allocated by the JVM, which is 1/64 of physical memory by default.
|
-xmx
|
the maximum allocated heap memory size of the JVM, by default, is 1/4 of physical memory.
|
-xx:permsize
|
The amount of non-heap memory initially allocated by the JVM is 1/64 of the physical memory by default.
|
-xx:maxpermsize
|
The maximum allocated non-heap memory size of the JVM, which is 1/4 of physical memory by default.
|
-xx:newsize
|
the initial generation heap area memory size allocated by the JVM.
|
-xx:maxnewsize
|
the maximum allocated Cenozoic heap area memory size for the JVM.
|
-xx:reservedcodecachesize
|
the size of the cache space when compiling code.
|
For full JVM parameters, refer to the official documentation:
Http://docs.oracle.com/javase/8/docs/technotes/tools/windows/java.html
In the event of a memory overflow using eclipse, consider adding the following configuration, and the values can be adjusted appropriately.
Eclipse Menu Window->preferences->myeclipse Enterprise workbench->servers->tomcat 6.x->jdk-> Optional Java VM Arguments
-xms256m-xmx512m-xx:maxnewsize=256m-xx:maxpermsize=256m
Eclipse.ini of the Eclipse root directory
C:\Users\admin\AppData\Local\MyEclipse Professional 2014
-vmargs
-xmx768m
-xx:maxpermsize=320m
-xx:reservedcodecachesize=64m
Several JVM parameters that are commonly used