Failed to create the Java Virtual machine. Problem solving

Source: Internet
Author: User

Running eclipse, "Failed to create the Java Virtual machine" appears. Error:

The solution is to find the Eclipse.ini file in the extract directory of Eclipse and modify the parameters.

Pre-Modified Eclipse.ini file:

-startupplugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar--launcher.libraryplugins/ org.eclipse.equinox.launcher.win32.win32.x86_1.1.200. V20120913-144807-productcom.android.ide.eclipse.adt.package.adtproduct-showsplashorg.eclipse.platform--launcher.xxmaxperm Size256m--launcher.defaultactionopenfile-vmargs-dosgi.requiredjavaversion=1.6-xx:maxpermsize= 128m-xms256m-xmx1024m

after the modified Eclipse.ini File:

-startupplugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar--launcher.libraryplugins/ org.eclipse.equinox.launcher.win32.win32.x86_1.1.200. V20120913-144807-productcom.android.ide.eclipse.adt.package.adtproduct-showsplashorg.eclipse.platform--launcher.xxmaxperm Size256m--launcher.defaultactionopenfile-vmargs-dosgi.requiredjavaversion=1.6-xx:maxpermsize= 128m-xms256m-xmx256m

Change the-xmx from 1024m to 256m and it will work.

The meaning of each parameter:

-xx:maxpermsize: Maximum amount of non-heap memory allowed by the JVM

-xms: Heap memory initially allocated by the JVM

-xmx: JVM allows allocation of maximum heap memory

Failed to create the Java Virtual machine. Problem solving

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.