Document directory
- Modify JVM memory:-xmx
- Modify the permanent generation memory size
Later found that there is a better introduction of eclipse. ini article, it is recommended to go directly to see this article: http://developer.51cto.com/art/200906/126835.htm
Today, I encountered the JVM terminated exit code = 1 problem. Later, I modified eclipse. the reason is not clear at present, but for eclipse. the INI file is of interest, so I found some information about eclipse on the Internet. INI information.
Eclipse. INI is a text file that contains parameters used during eclipse startup. You can also directly enter these parameters in the command line.
There are two notes for eclipse. ini:
- Each parameter option or parameter value must be an independent row.
- Parameters after-vmargs will be used by JVM, so the eclipse configuration must be placed before the-vmargs parameter.
The following are common parameters:
Specify JVM:-VM
You can use the-VM parameter to specify the Java Virtual Machine Used by eclipse. The format has the following requirements:
- -The VM Parameter options and parameter values are in different rows.
- An absolute path of a Java executable file (such as java.exe)
- -VM parameters must be placed before-vmargs. (My problem seems to be caused here)
Modify JVM memory:-xmx
JVM-related options should be placed under-vmargs. By modifying the-xmx parameter, you can adjust the JVM memory.
Modify the permanent generation memory size
The parameter is-XX: maxpermsize is related to what is permanent generation memory. On the Internet, I found a diagram about Java memory, which can be roughly understood, class Definition and interned strings ). This value is too small. Sometimes the outofmemoryerrors error occurs,