Unable to start VM with JDK8 on Linux/x64
Andrew Haley
aph at redhat.com
Mon Apr 14 08:38:35 UTC 2014
Hi,
On 04/14/2014 07:37 AM, Stefan Karlsson wrote:
> On 2014-04-14 03:53, Krystal Mok wrote:
>> Hi Stefan,
>>
>> Unfortunately, overcommit_memory=2 isn't the cause. The original bug
>> reporter ran the test again in a 3GB virtual machine [1], and saw:
>>
>> $ cat /proc/sys/vm/overcommit_memory
>> 0
>> $ cat /proc/sys/vm/overcommit_ratio
>> 50
>> $ ~/jdk1.8.0/bin/java
>> Error occurred during initialization of VM
>> Could not allocate metaspace: 1073741824 bytes
>
> Then I don't know. Maybe the virtualization layer prevents the overcommit?
That is certainly possible. I know for certain that some virtualization
layers effectively disable overcommit.
Andrew.
More information about the hotspot-runtime-dev
mailing list