Solution for "Could not create the Java Virtual Machine"

The problem: we wanted to give more memory to Blast2GO running on Windows 7 x64, but we kept getting the error *beep* "Could not create the Java Virtual Machine".

Looking at the makeJnlp.php file that the Blast2GO website gives you, I noticed the max-heap-size line:

<jnlp spec="1.0+" codebase="http://bioinfo.cipf.es/blast2go/webstart" href="http://bioinfo.cipf.es/blast2go/webstart/makeJnlp.php?mem=2048">
<information>
<title>Blast2GO 2048M</title>
<vendor>CIPF - UPV - IVIA</vendor>
<homepage href="http://www.blast2go.org"/>
<description>Blast2GO 2048M</description>
<description kind="short">Blast2GO 2048M</description>
<icon href="splash.gif"/>
<offline-allowed/>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se version="1.5+" initial-heap-size="64m" max-heap-size="2048M"/>
...

When I removed the max-heap-size assignment the JNLP file started just fine with Java Web Start (javaws.exe). Conclusion: somehow the machine could not actually allocate the amount of heap space we were asking for.

Sure enough, further investigation showed that the 32-bit version of Java had been installed instead of the 64-bit version.

After installing the 64-bit version and running the JNLP file with 64-bit javaws.exe, everything was fine.

[ Submitted by John on Mon, 2010-03-15 10:48. | | ]

JNLP heap size

Hi,
I have the same problem, but my JVM is 64 bit. As soon as I increase heap size from 1024M to 2048M I get "could not create Java Virtual Machine". Any other ideas?

[ Submitted by Len (not verified) on Sun, 2010-05-09 21:07. | ]

heap size

Where do I go to change the Heap Size.

[ Submitted by Anonymous (not verified) on Thu, 2011-03-24 08:44. | ]

Jmeter

Unrecognized VM option '+HeapDumpOnOutOfMemoryError'
Could not create the Java virtual machine.
errorlevel=1
Press any key to continue . . .

[ Submitted by Anonymous (not verified) on Tue, 2010-09-14 07:36. | ]

Thanks a bunch Len, this

Thanks a bunch Len, this helped me out a bunch. I wish there was a bit more information in the warning message. I changed my heap size down to 512M from 1024M and things worked just fine.

[ Submitted by Eric Arnoldy (not verified) on Thu, 2010-11-11 17:50. | ]

Good man. Saved me.

Good man. Saved me.

[ Submitted by Anonymous (not verified) on Thu, 2010-12-09 01:45. | ]

How do I work it

Hi, I also keep getting the "Could not create the Java Virtual Machine" ...... How do I change my heap size down to 512M from 1024M to see if this makes it work?

[ Submitted by Philco (not verified) on Fri, 2011-01-07 15:19. | ]

This might seem like a dumb

This might seem like a dumb question, but where can you change the heap size?

[ Submitted by Anonymous (not verified) on Fri, 2011-01-07 15:25. | ]

I tried changing

I tried changing -XX:MaxPermSize=1024m to -XX:MaxPermSize=768m, and it works.. I'm using eclipse for development, you may see the settings in the .ini file inside the eclipse folder (if you're using eclipse).

[ Submitted by Kevin (not verified) on Mon, 2011-01-17 20:09. | ]

Same prob.

I have the same prob. but only im running windows XP Home in 32bit. i have deleted everything relating t Java that you can think of restarted my PC reinstalled Java onto my PC. I have the latest java w/all updates 6-23 w/RTE 6-1....
With my prob though it's with me running my MP3 Rocket
i have contacted MP3 and followed their advice and have figured out thats its the java thats not working.Everytime i try to start my MP3 i get the error message [Could not create the java virtue Machine].
Any help would be greatly appreciated.

[ Submitted by Kevin (not verified) on Wed, 2011-02-16 09:59. | ]

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question tests your humanity.