Exception during Eclipse startup: JVM terminated. Exit code =-1

Source: Internet
Author: User

 

The following error occurs when Eclipse cannot be started:

JVM terminated. Exit code =-1
-Xms40m
-Xmx256m
-Djava.net. preferIPv4Stack = true
-XX: MaxPermSize = 512 m
-Djava. class. path = D:/Develop/Php/eclipse/plugins/org. eclipse. equinox. launcher_1.0.101.R34x_v20081125.j
Ar
-OS win32
-Ws win32
-Arch x86
-Showsplash D:/Develop/Php/eclipse // plugins/org. eclipse. platform_3.101.v200902111700/splash.bmp
-Launcher D:/Develop/Php/eclipse/eclipse.exe
-Name Eclipse
-- Launcher. library
D:/Develop/Php/eclipse/plugins/org. eclipse. equinox. launcher. win32.win32. x86_1.0.101.R34x_v20080731/ecl
Ipse_1115.dll
-Startup D:/Develop/Php/eclipse/plugins/org. eclipse. equinox. launcher_1.0.101.R34x_v20081125.jar
-Vm c:/Java/jdk1.6.0 _ 10/bin/../jre/bin/client/jvm. dll
-Vmargs
-Xms40m
-Xmx256m
-Djava.net. preferIPv4Stack = true
-XX: MaxPermSize = 512 m
-Djava. class. path = D:/Develop/Php/eclipse/plugins/org. eclipse. equinox. launcher_1.0.101.R34x_v20081125.j
Ar

You can search for this type of error in the following ways:

First, the content of eclipse. ini in the eclipse installation path is as follows:

-Startup
Plugins/org. eclipse. equinox. launcher_1.0.101.R34x_v20081125.jar
-Showsplash
Org. eclipse. platform
-- Launcher. XXMaxPermSize
512 m
-Vmargs
-Xms40m
-Xmx256m
-Djava.net. preferIPv4Stack = true

First: the memory setting in eclipse. ini is too large. Modify-Xms256m to-Xms128m and change Xmx512m to Xmx256m.

Cause: large memory configuration.

Solution 2: After adding the following two lines in eclipse. ini, the problem is solved:
-Vm
D:/Program Files/Java/jdk1.6.0/bin/javaw.exe

Javaw.exe is the installation path of my JDK. At the same time, the complete eclipse. ini is as follows:

-Startup
Plugins/org. eclipse. equinox. launcher_1.0.101.R34x_v20081125.jar
-Showsplash
Org. eclipse. platform
-- Launcher. XXMaxPermSize
512 m
-Vm
C:/Java/jdk1.6.0 _ 10/bin/javaw.exe
-Vmargs
-Xms40m
-Xmx256m
-Djava.net. preferIPv4Stack = true

Third, delete the eclipse. ini file under the eclipse installation directory and restart eclipse.exe.

What I don't understand is the first case: My memory configuration has never changed, and I used it normally before. How can I suddenly see that the memory configuration is too large, if anyone knows this, please give me more advice!

 

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.