I am using the latest version of Eclipse Java EE Kepler (v4.3.0). After JBoss Developer Studio 7 (Kepler) is installed, I start Eclipse again. the error "Failed to create the Java Virtual Machine" is displayed. The system automatically exits after confirmation.
Cause analysis:
After JBoss Developer Studio 7 (Kepler) is installed, a new parameter is written to the Eclipse. Ini file in the eclipse installation directory.
Source File:
-Startup
Plugins/org. eclipse. equinox. Launcher_1.3.0.v20130327-1440.jar
-- Launcher. library
Plugins/org. eclipse. equinox. launcher. win32.win32. X86_1.1.200.v20130521-0416
-Product
Org. eclipse. epp. package. jee. product
-- Launcher. defaultAction
OpenFile
-- Launcher. XXMaxPermSize
256 M
-Showsplash
Org. eclipse. platform
-- Launcher. XXMaxPermSize
256 m
-- Launcher. defaultAction
OpenFile
-- Launcher. appendVmargs
-Vmargs
-Dosgi. requiredJavaVersion = 1.6
-Xms40m
-Xmx512m
After modification:
-Startup
Plugins/org. eclipse. equinox. Launcher_1.3.0.v20130327-1440.jar
-- Launcher. library
Plugins/org. eclipse. equinox. launcher. win32.win32. X86_1.1.200.v20130521-0416
-Product
Org. eclipse. epp. package. jee. product
-- Launcher. defaultAction
OpenFile
-- Launcher. XXMaxPermSize
256 M
-Showsplash
Org. eclipse. platform
-- Launcher. XXMaxPermSize
256 m
-- Launcher. defaultAction
OpenFile
-- Launcher. appendVmargs
-Vmargs
-Dosgi. requiredJavaVersion = 1.6
-Xms256m
-Xmx1024m
-Djboss. discovery. directory. url = https://devstudio.jboss.com/updates/7.0/devstudio-directory.xml
As you can see, The-Xms and-Xmx parameters are changed to a larger value. This error occurs because the system cannot allocate enough memory for the parameter during startup.
Solution:
-The Xms value remains unchanged. Modify the-Xmx parameter to MB.