After we install eclipse, we have a file named Eclipse.ini in our installation directory.
The contents of the open file are as follows:
-startupplugins /org.eclipse.equinox.launcher_1.3.100.v20150511-1540. jar--launcher . libraryplugins /org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.300. V20150602-1417-productorg . Eclipse.epp.package.jee. product--launcher . defaultactionopenfile--launcher . xxmaxpermsize256m-showsplashorg . Eclipse. platform--launcher . xxmaxpermsize256m--launcher . defaultactionopenfile--launcher . appendvmargs-vmargs-dosgi .requiredjavaversion=1.7- xms256m-xmx1024m
-vmargs: Description follows the parameters of the VM
-dosgi.requiredjavaversion=1.7 Description The required Java version is 1.7
-xms256m: Indicates that the minimum memory for the virtual machine occupies the system is 256M.
-XMX1024M: Indicates that the maximum memory for the virtual machine occupies the system is 1024M.
We can also add some additional parameter configurations in this area:
For example:
-xx:permsize: Minimum heap size.
Generally reported insufficient memory, are said that this is too small, the remaining capacity of the heap space is less than 5% will be warned, it is recommended to set this slightly larger, depending on the size of their own machine memory settings
-xx:maxpermsize: Maximum heap size. This one's a little bigger.
-xmx512m 5% is 25.6M, theoretically requires-XMX value and-xx:maxpermsize must be greater than 25.6M
Modify the memory size of Tomcat under Eclipse/resolve memory Overflow