Increase eclipse Memory Allocation
1. command line:
In the process of using eclipse, the "memory overflow" problem may occur from time to time. One solution is to increase the memory usage when eclipse is started. In the eclipse installation directory, through the command line method: eclipse-vmargs-xms512m-xmx1024m, however, virtual memory is added instead of physical memory.
2. modify configuration file Memory Optimization
After eclipse is installed, there is a config. ini file in the installation directory. The content is as follows:
-Vmargs
-Xms40m
-Xmx256m
Or, it's actually quite simple. Open the eclipse package and there is an eclipse. ini file under the contents/MACOs directory,
Open it with the editing tool and change xms128m to xms256m.
This file is used to configure the memory allocation scheme during eclipse startup. XMS indicates the initial memory size and xmx indicates the maximum available memory size. The default configuration is eclipse resource consumption.
Minimal configuration. If your project is relatively large, this configuration must be changed. Generally, it can be adjusted to 128,384. If the project is larger, the configuration will be larger, depending on the actual situation. This parameter configuration
It is critical to set the size. If it is too small, the garbage collection in eclipse will be too frequent, resulting in a slow process, or crash due to memory stack overflow. Eclipse will consume a large amount of memory, and the garbage collection cycle will become longer,
Each recycle operation will be slow, affecting the usage. So you need to weigh the configuration and try it!
However, modifying the configuration file does not seem to work, but it is still effective in one way!
Address: http://blog.csdn.net/xiaosu_521/article/details/2111046