Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Could not create JVM in Windows 7 64-bit

923860Mar 14 2012 — edited Mar 16 2012
Hello,

I'm trying to launch my java web start application in a windows 7 64-bit machine (8 GB RAM) with the parameter -Xmx4g in the JNLP file (java version 1.6.0_27). I get the error "Could not create the Java Virtual Machine". When I reduce it to -Xmx1000m it launches fine but at some point my application crashes because of java.lang.OutOfMemoryError. When I run the jar file java -jar -Xmx4g MyApplication.jar from the command line it runs fine and never crashes.

The same application can be launched in windows XP SP3 (2GB RAM) with -Xmx1000m (java version 1.6.0_26) and never crashes.

So basically what I've concluded is that in the 64-bit my application runs out of memory (even though it works fine for the same dataset in the 32-bit) but I cannot find a way to address the extra memory I need from the JNLP file without having the error "Could not create the Java Virtual Machine".

I'm not sure if there is an obvious solution that I'm missing, I've looked online but I'm no wiser. I would appreciate any help!

Thanks,
Laura
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 13 2012
Added on Mar 14 2012
5 comments
1,690 views