Eclipse.ini parameter settings (Maven integration for Eclipse JDK Warning)

Source: Internet
Author: User
Tags win32

Eclipse startup issue after eclipse installs Maven plugin: Maven integration for Eclipse JDK Warning.
Workaround: 1. Set up the JRE used by eclipse to natively install the JDK directory: 1.1 Add two lines in Eclipse.ini

-vm

C:\Program Files\java\jdk1.6.0_10\bin\javaw.exe

Note: To write in two lines, write on one line does not take effect, the two lines to be set before-vmargs, otherwise it will not take effect.

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

The experiment found that step 1.2 can not be done, but it is recommended to configure the development environment is a step, and the first two lines can also be written

-vm

C:\Program files\java\jdk1.6.0_10\bin\

Test found under CentOS 6.3 x86_64, if designated as/usr/custom/jdk1.6.0_37/bin/java.exe will be prompted not to find the JDK,

Can only be configured as:/usr/custom/jdk1.6.0_37/bin/

2. Configure the Eclipse.ini file: first explain the file-vmargs the meaning of the common parameters:
-vmargs
-xms40m
-xmx256m
-xx:permsize=64m
-xx:maxpermsize=128m-vmargs: Description follows the parameters of the VM
-xms40m: Virtual machine occupies the minimum memory of the system, initial allocation
-xmx256m: Virtual machine occupies the maximum memory of the system, on demand
-xx:permsize: Minimum heap size. Generally reported insufficient memory, are said that this is too small, the remaining heap space is less than 5% will be warned, it is recommended to set this slightly
Larger, but not more than MaxPermSize, depending on the size of your machine's memory. -xx:maxpermsize: Maximum heap size.    This is also appropriate for larger, so if there is a problem, first adjust the-xms40m: set it smaller, you can solve the problem. PermSize and MaxPermSize refers to a virtual machine that allocates memory for these reflective objects, such as the Java permanently generated object (Permanate generation), which is not included in the heap memory area.

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

Open the Eclipse.ini file under the Eclipse installation directory and modify:

--launcher. Xxmaxpermsize

128M;

For:

--launcher. Xxmaxpermsize
256m

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

4. STS-2.9.1 's Eclipse.ini configuration

    -VM
    c:/java/jdk1.6.0_30/bin/javaw.exe 
   -startup
     Plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
   --launcher.library
    plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.100.v20110502
    -product
    com.springsource.sts.ide
   --launcher.defaultaction
     openFile
   --launcher. Xxmaxpermsize
    384M

-vm
/usr/zskx/java/bin/java
-vmargs
-dcom.sun.management.jmxremote
-dosgi.requiredjavaversion=1.5
-xverify:none
-xmn128m
-xms256m
-xmx768m
-xss1m
-xx:permsize=128m
-xx:maxpermsize=512m

-xx:+useparallelgc
-xx:+disableexplicitgc
-xnoclassgc
-xx:+useparnewgc
-xx:+useconcmarksweepgc
-xx:cmsinitiatingoccupancyfraction=85

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.