Eclipse: Failed to create the Java Virtual Machine

Source: Internet
Author: User
Tags win32 jboss xms


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.

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.