Unable to start VM with JDK8 on Linux/x64

Krystal Mok rednaxelafx at gmail.com
Thu Apr 10 09:29:30 UTC 2014


Hi HotSpot runtime team,

I'd like to report a bug on behave of someone from a discussion thread [1]
from the HLLVM forum that I run.

This is the symptom he reported:

$ uname -a
Linux IS-CDSM-166 2.6.32.61-cds-64 #1 SMP PREEMPT Tue Feb 25 20:23:18 PST
2014 x86_64 x86_64 x86_64 GNU/Linux

$ java -version
Error occurred during initialization of VM
Could not allocate metaspace: 1073741824 bytes

$ java -XX:MaxMetaspaceSize=1m -XX:MetaspaceSize=1m -version
Error occurred during initialization of VM
Could not allocate metaspace: 1073741824 bytes

Apparently the error message says it's trying to allocate a 1GB metaspace,
but failed. This seems to be related to JDK-8003424: Enable Class Data
Sharing for CompressedOops [2].

He further tested working around with -XX:-UseCompressedClassPointers, and
it worked:

# java -XX:ClassMetaspaceSize=512m -version
Unrecognized VM option 'ClassMetaspaceSize=512m'
Did you mean 'MetaspaceSize=<value>'?
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

$ java -XX:-UseCompressedClassPointers -version
java version "1.8.0"
Java(TM) SE Runtime Environment (build 1.8.0-b132)
Java HotSpot(TM) 64-Bit Server VM (build 25.0-b70, mixed mode)

The tests above were run in a virtual machine with 3GB of memory.
When he bumped up the memory for his virtual machine to 8GB, the VM is able
to start without the workaround.

Has this behavior been seen before?

Best regards,
Kris

[1]: http://hllvm.group.iteye.com/group/topic/39890
[2]: https://bugs.openjdk.java.net/browse/JDK-8003424
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/hotspot-runtime-dev/attachments/20140410/ed8a64b3/attachment.html>


More information about the hotspot-runtime-dev mailing list