facebook

Failed to create the java virtual machine

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates

Tagged: 

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #354143 Reply

    manish8616
    Member

    MyEclipse is very slow while starting. It takes around 3- 5 minutes to start. While publishing on the websphere application server integrated with myEclipse, lot of times it hangs. I have to kill both app server and my eclipse.

    I tried to increase the memory -Xmx768m to -Xmx1024m in the myclipse.ini. However, the change always crashed myeclipse and i get “My Eclipse – Failed to create the java virtual machine” error.

    My system runs on windows 7 and have 8 GB of memory.

    Please advise.

    myeclipse.ini looks as follows :

    -startup
    plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
    –launcher.library
    plugins/org.eclipse.equinox.launcher.i18n.win32.win32.x86_3.2.0.v201103301700
    -vm
    binary/com.sun.java.jdk7.win32.x86_1.7.0.u45/jre/bin/client/jvm.dll
    -install
    C:\MyEclipse 2015
    -vmargs
    -Xmx768m
    -XX:MaxPermSize=320m
    -XX:ReservedCodeCacheSize=64m
    -Dosgi.nls.warnings=ignore

    #354154 Reply

    support-swapna
    Moderator

    Manish,

    Sorry that you are seeing this issue with MyEclipse.

    Can you please answer some more questions ?

    1. Are you working with a large workspace ? Do you see the issue with a fresh workspace ?

    2. Did you install any third party plugins? Please share the MyEclipse Installation Details from MyEclipse > Installation Summary > Installation Details.

    3. Here is an FAQ for the performance issues in MyEclipse 2015. Please check if it helps.

    4. Can you please try starting MyEclipse with the -clean argument to see if that helps?

    5. If the issue persists, can you please try increasing the -Xmx value from 768m in small incremental values i.e increase by 50 each time and see how it works?

    6. If the above steps do not help, please send us the .log file which is located at <workspace dir>/.metadata/.log to help us investigate further.

    Let us know how it works for you.

    #354219 Reply

    manish8616
    Member

    Please see reply below

    1. Are you working with a large workspace ? Do you see the issue with a fresh workspace ? my workspace size = 1.58 GB

    2. Did you install any third party plugins? Please share the MyEclipse Installation Details from MyEclipse > Installation Summary > Installation Details.
    Details are as follows :
    *** Date:
    Tuesday, May 5, 2015 11:06:09 AM EDT

    *** System properties:
    OS=Windows7
    OS version=6.1.0
    OS arch=x86
    Profile arch=x86
    Window system=win32
    Java version=1.7.0_45
    Workspace=file:/C:/manish/workspace/
    VM Args=-Xmx768m
    -XX:MaxPermSize=320m
    -XX:ReservedCodeCacheSize=64m
    -Dosgi.nls.warnings=ignore
    -Djava.class.path=C:\MYECLI~1\plugins/OR45D0~1.JAR

    *** Subscription information
    Product Id: E3MB (MyEclipse Blue Subscription)
    License version: 3.0
    Full Maintenance Included
    Subscription expiration date (YYYYMMDD): 20151223
    Number of users: 80

    *** Eclipse details:
    MyEclipse Enterprise Workbench

    Version: 2015 Stable 1.0
    Build id: 13.0.0-20150115

    com.genuitec.eclipse.mobile.feature – 13.0.0.me201501141551
    com.genuitec.myeclipse.blue.feature – 13.0.0.me201501141551
    com.genuitec.myeclipse.database – 13.0.0.me201501141551
    com.genuitec.myeclipse.db2 – 13.0.0.me201501141551
    com.genuitec.myeclipse.desktop – 13.0.0.me201501141551
    com.genuitec.myeclipse.enterprise.workbench – 13.0.0.me201501141551
    com.genuitec.myeclipse.icefaces.feature – 13.0.0.me201501141551
    com.genuitec.myeclipse.imageeditor – 13.0.0.me201501141551
    com.genuitec.myeclipse.jsf – 13.0.0.me201501141551
    com.genuitec.myeclipse.maven – 13.0.0.me201501141551
    com.genuitec.myeclipse.persistence – 13.0.0.me201501141551
    com.genuitec.myeclipse.reports – 13.0.0.me201501141551
    com.genuitec.myeclipse.struts – 13.0.0.me201501141551
    com.genuitec.myeclipse.uml2 – 13.0.0.me201501141551
    com.genuitec.myeclipse.visualvm – 13.0.0.me201501141551
    com.genuitec.myeclipse.ws – 13.0.0.me201501141551
    com.genuitec.myeclipse.ws.blue – 13.0.0.me201501141551
    com.skyway.myeclipseforspring.feature – 13.0.0.me201501141551
    org.eclipse.birt – 4.4.1.me201501141551
    org.eclipse.datatools.connectivity.feature – 1.12.0.me201501141551
    org.eclipse.datatools.enablement.feature – 1.12.0.me201501141551
    org.eclipse.datatools.modelbase.feature – 1.12.0.v201406061321-7707GCcNBHLDaKTEcRi
    org.eclipse.datatools.sqldevtools.feature – 1.12.0.me201501141551
    org.eclipse.emf – 2.10.1.v20140901-1055
    org.eclipse.gef – 3.9.101.201408150207
    org.eclipse.graphiti.feature – 0.11.1.v20140903-1228
    org.eclipse.jpt.jpa.feature – 3.4.0.me201501141551
    org.eclipse.jpt.jpadiagrameditor.feature – 1.2.100.me201501141551
    org.eclipse.jst.common.fproj.enablement.jdt – 3.6.1.me201501141551
    org.eclipse.jst.enterprise_ui.feature – 3.6.1.me201501141551
    org.eclipse.jst.server_adapters.ext.feature – 3.3.300.me201501141551
    org.eclipse.jst.server_adapters.feature – 3.2.301.me201501141551
    org.eclipse.jst.server_ui.feature – 3.4.101.me201501141551
    org.eclipse.jst.ws.axis2tools.feature – 1.1.301.me201501141551
    org.eclipse.m2e.feature – 1.5.0.me201501141551
    org.eclipse.sapphire.platform – 8.0.2.201411041416
    org.eclipse.wst.common.fproj – 3.6.1.me201501141551
    org.eclipse.wst.server_adapters.feature – 3.2.401.me201501141551
    org.eclipse.xsd – 2.10.0.v20140901-1055
    org.springframework.ide.eclipse.feature – 3.6.2.me201501141551

    angularjs-eclipse-feature – 0.7.0.me201501141551
    angularjs-eclipse-jsp-feature – 0.7.0.me201501141551
    angularjs-eclipse-php-feature – 0.7.0.me201501141551
    bndtools.jarviewer.feature – 2.4.1.REL-20150116-150145-g75d944b
    bndtools.main.feature – 2.4.1.REL-20150116-150145-g75d944b
    com.vmware.vfabric.ide.eclipse.tcserver – 3.6.2.me201501141551
    com.vmware.vfabric.ide.eclipse.tcserver.insight – 3.6.2.me201501141551
    fr.obeo.acceleo.bridge.feature – 2.6.0.me201501141551
    net.jeeeyul.swtend.feature – 2.2.2
    net.sf.eclipsecs – 6.1.1.201412161501
    net.sourceforge.pmd.eclipse – 4.0.6.v20150401-1945
    org.aspectj – 1.8.1.20140516080300
    org.eclipse.ajdt – 2.2.4.e44x-20140516-1000
    org.eclipse.contribution.weaving – 2.2.4.e44x-20140516-1000
    org.eclipse.contribution.weaving.source – 2.2.4.e44x-20140516-1000
    org.eclipse.contribution.xref – 2.2.4.e44x-20140516-1000
    org.eclipse.contribution.xref.source – 2.2.4.e44x-20140516-1000
    org.eclipse.cvs – 1.4.100.v20140925-0400
    org.eclipse.draw2d – 3.9.101.201408150207
    org.eclipse.e4.rcp – 1.3.100.v20140909-1633
    org.eclipse.e4.rcp.R441patch – 1.0.0
    org.eclipse.ecf.core.feature – 1.1.0.v20140827-1444
    org.eclipse.ecf.core.ssl.feature – 1.0.0.v20140827-1444
    org.eclipse.ecf.filetransfer.feature – 3.9.0.v20140827-1444
    org.eclipse.ecf.filetransfer.httpclient4.feature – 3.9.1.v20140827-1444
    org.eclipse.ecf.filetransfer.httpclient4.ssl.feature – 1.0.0.v20140827-1444
    org.eclipse.ecf.filetransfer.ssl.feature – 1.0.0.v20140827-1444
    org.eclipse.egit – 3.4.2.201412180340-r
    org.eclipse.epp.mpc – 1.3.1.v20140908-1651
    org.eclipse.equinox.p2.core.feature – 1.3.0.v20140523-0116
    org.eclipse.equinox.p2.discovery.feature – 1.0.200.v20140512-1802
    org.eclipse.equinox.p2.extras.feature – 1.2.0.v20140911-0143
    org.eclipse.equinox.p2.rcp.feature – 1.2.0.v20140523-0116
    org.eclipse.equinox.p2.user.ui – 2.2.0.v20140911-0143
    org.eclipse.equinox.weaving.sdk – 1.1.0.I20140501-0200
    org.eclipse.help – 2.0.102.v20140925-0400
    org.eclipse.jdt – 3.10.0.v20140925-0400
    org.eclipse.jet – 1.1.1.v201101271243-5319sC7HCAGERASDK3924
    org.eclipse.jet.uml2 – 1.1.0.v201006011447-2-07w311A1A152813
    org.eclipse.jgit – 3.4.2.201412180340-r
    org.eclipse.jsf.feature – 3.8.0.me201501141551
    org.eclipse.mylyn.bugzilla_feature – 3.13.0.v20140830-0030
    org.eclipse.mylyn.commons – 3.13.0.v20140704-2323
    org.eclipse.mylyn.commons.identity – 1.5.0.v20140702-2248
    org.eclipse.mylyn.commons.notifications – 1.5.0.v20140702-2248
    org.eclipse.mylyn.commons.repositories – 1.5.0.v20140905-0008
    org.eclipse.mylyn.context_feature – 3.13.0.v20140819-2236
    org.eclipse.mylyn.cvs – 1.5.0.v20140702-2223
    org.eclipse.mylyn.discovery – 3.13.0.v20140820-1854
    org.eclipse.mylyn.git – 1.5.0.v20140702-2223
    org.eclipse.mylyn.ide_feature – 3.13.0.v20140702-2225
    org.eclipse.mylyn.java_feature – 3.13.0.v20140819-2236
    org.eclipse.mylyn.monitor – 3.13.0.v20140702-2155
    org.eclipse.mylyn.tasks.ide – 3.13.0.v20140704-0050
    org.eclipse.mylyn.team_feature – 3.13.0.v20140702-2225
    org.eclipse.mylyn.versions – 1.5.0.v20140702-2223
    org.eclipse.mylyn_feature – 3.13.0.v20140826-1734
    org.eclipse.ocl – 3.1.0.v20110606-1427
    org.eclipse.pde – 3.10.0.v20140925-0400
    org.eclipse.platform – 4.4.0.v20140925-0400
    org.eclipse.rcp – 4.4.0.v20140925-0400
    org.eclipse.team.svn – 2.0.4.I20150123-1700
    org.eclipse.team.svn.resource.ignore.rules.jdt – 2.0.3.I20141224-1700
    org.eclipse.team.svn.revision.graph – 2.0.3.I20141224-1700
    org.eclipse.wb.core.feature – 1.7.0.r44x201405021445
    org.eclipse.wb.core.java.feature – 1.7.0.r44x201405021448
    org.eclipse.wb.core.ui.feature – 1.7.0.r44x201405021455
    org.eclipse.wb.core.xml.feature – 1.7.0.r44x201405021458
    org.eclipse.wb.doc.user.feature – 1.7.0.r44x201405021506
    org.eclipse.wb.layout.group.feature – 1.7.0.r44x201405021517
    org.eclipse.wb.rcp.SWT_AWT_support – 1.7.0.r44x201405021546
    org.eclipse.wb.rcp.doc.user.feature – 1.7.0.r44x201405030426
    org.eclipse.wb.rcp.feature – 1.7.0.r44x201405021526
    org.eclipse.wb.swing.doc.user.feature – 1.7.0.r44x201405030444
    org.eclipse.wb.swing.feature – 1.7.0.r44x201405021531
    org.eclipse.wb.swt.feature – 1.7.0.r44x201405021519
    org.eclipse.wb.xwt.feature – 1.7.0.r44x201405021548
    org.polarion.eclipse.team.svn.connector – 4.1.2.I20141224-1700
    org.polarion.eclipse.team.svn.connector.javahl17 – 4.1.2.I20141224-1700
    org.polarion.eclipse.team.svn.connector.javahl17.win32 – 4.0.2.I20140528-1700
    org.sonatype.m2e.mavenarchiver.feature – 0.16.0.201401211452-signed-20140310144306
    org.springsource.ide.eclipse.commons – 3.6.2.me201501141551
    tern-feature – 0.7.0.me201501141551
    tern-jsdt-feature – 0.7.0.me201501141551
    tern-server-nodejs-feature – 0.7.0.me201501141551
    tern.eclipse.ide.tools.feature – 0.7.0.me201501141551

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -showsplash
    -launcher
    C:\MyEclipse 2015\myeclipse.exe
    -name
    Myeclipse
    –launcher.library
    C:\MyEclipse 2015\plugins/org.eclipse.equinox.launcher.i18n.win32.win32.x86_3.2.0.v201103301700\eclipse_3215.dll
    -startup
    C:\MyEclipse 2015\plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
    -install
    C:\MyEclipse 2015
    -vm
    C:\MyEclipse 2015\binary/com.sun.java.jdk7.win32.x86_1.7.0.u45/jre/bin/client/jvm.dll

    3. Here is an FAQ for the performance issues in MyEclipse 2015. Please check if it helps. – No answer here.

    4. Can you please try starting MyEclipse with the -clean argument to see if that helps? – It does not help.

    5. If the issue persists, can you please try increasing the -Xmx value from 768m in small incremental values i.e increase by 50 each time and see how it works? Any increment crash the VM. – It worked till 938m. when it was increated to 988m. it creashed.

    6. If the above steps do not help, please send us the .log file which is located at <workspace dir>/.metadata/.log to help us investigate further.

    Attachments:
    You must be logged in to view attached files.
    #354229 Reply

    support-swapna
    Moderator

    Manish,

    Thank you for the files.

    1. While we investigate further, do you see the issue with a new workspace ? Please switch to a new workspace and check if the issue persists. If yes, then please send us the .log file again.

    2. Do you see any long running jobs on the MyEclipse IDE ?

    3. Is MyEclipse still slow at -Xmx = 938m ? Did you see any improvement from -Xmx 768m to 938m ?

    #611333 Reply

    billbarren
    Participant

    There is not enough virtual memory space requested by an application thus the application fails to start. This usually happens during the application startup phase. Applications reserve a large amount of virtual memory for the JVM heap space during the startup phase. Java on Windows uses an initial size of 16 Megabyte and a maximum of 64 Megabyte.

    Most of the time you can fix this problem by uninstalling the Java runtime and then reinstalling it all over again. You can also try increasing the amount of system memory allocated to the Java virtual machine by setting an environment variable.

    Open the Control Panel
    Go to System
    Go to Advanced Systems Properties
    Then Environment Variables
    In System Variables, click Add
    New Variable Name: _JAVA_OPTIONS
    New Variable Value: -Xmx512M
    Click OK

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Failed to create the java virtual machine

You must be logged in to post in the forum log in