Eclipse. ini parameter settings (Maven integration for eclipse JDK warning)

Source: Internet
Author: User

 

After installing the maven plug-in eclipse, the eclipse startup problem is: Maven integration for eclipse JDK warning.
Solution: 1. Set the JRE used by eclipse to the JDK directory installed on the local machine: 1.1 add two lines in eclipse. ini

-VM

C: \ Program Files \ Java \ jdk1.6.0 _ 10 \ bin \ javaw.exe

Note: The two lines must be written, but the two lines cannot take effect. The two lines must be written before-vmargs. Otherwise, they cannot take effect.

1.2 or set eclipse -- windows -- preferences -- Java -- installed jres to change JRE home to the JDK directory.

The test showed that step 1 can be left blank, but it is recommended that you configure the development environment as a step, and the two lines in step 1 can also be written

-VM

C: \ Program Files \ Java \ jdk1.6.0 _ 10 \ bin \

2. Configure the eclipse. ini file: first explain the common parameters in this file-vmargs:-vmargs
-Xms40m
-Xmx256m
-XX: permsize = 64 m
-XX: maxpermsize = 128 M-vmargs: Specifies the VM parameters.
-Xms40m: the virtual machine occupies the Minimum Memory of the system and is initially allocated.
-Xmx256m: the VM occupies the maximum memory of the system and is allocated as needed.
-XX: permsize: Minimum heap size. Generally, when the memory is insufficient, it is said that this is too small. If the remaining heap space is less than 5%, a warning will be given. We recommend that you set this slightly
Larger, but it depends on the memory size of your machine, but cannot exceed maxpermsize. -XX: maxpermsize: Maximum heap size. This is also a little larger, so if there is a problem, first adjust-xms40m: Set it to a smaller value to solve the problem. Permsize and maxpermsize indicate the limitations on memory allocation to these reflective objects, such as permanate generation, for Java permanently generated objects by virtual machines, which are not included in heap (heap memory.

3. Solve the failed to creat Java Virtual Machine problem:

Open the eclipse. ini file under the eclipse installation directory, and modify:

-- Launcher. xxmaxpermsize

128 M to m;

-- Launcher. xxmaxpermsize
256 m

128 m;

See: http://blog.csdn.net/yuanfei_1988/archive/2010/10/02/5919168.aspx

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.