Turn from: 39048737
Configure XMS, XMX, PermSize, MaxPermSize in the Tomcat server memory size
Turn from: 52938043
A Java Virtual machine memory configuration:
(1) Operation: project name (e.g. CK02) right-click (select option Properties)->run/debug settings-> Select the program you want to execute (for example: Launch), tap (edit. ), select (x) =arguments under VM arguments as:
-xmx1024m-xms512m-xx:maxpermsize=256m
(2) Parameter analysis:
-xmx1024m: Sets the maximum available memory for the JVM to 1024M.
-XMS512M: Virtual machine occupies the minimum memory of the system. This value can be set to the same as-xmx to avoid the JVM reallocating memory after each garbage collection completes.
-xx:maxpermsize: Maximum heap size. This is also appropriate, so if there is a problem, first please adjust the –xms512m: set it smaller, OK.
Note: Do not write incorrectly when configuring the character, otherwise it may cause the MYECLIPSE environment not to run the Java program.
Two Eclipse Memory Configuration:
(1) Configuration method:
There is a Eclipse.ini file under the Eclipse file, configured as:
-xmx1024m-xms512m–xx:permsize=64m-xx:maxpermsize=256m
-xx:permsize: Minimum heap size. Generally reported insufficient memory, are 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 the machine memory to be installed, but not more than MaxPermSize.
(2) Looking for Eclipse.ini files:
Click "Start" Search: Eclipse.ini
Three. You can also write the above configuration in the Xx.bat file to run the program.
Java Learning Java Virtual machine memory configuration,-xss256m-xms512m-xmx800m-xx:maxpermsize=512m