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!