[Linux environment configuration] adds eclipse Memory Allocation

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.