32bit windows VM cannot be started with 1GB heap?
thomas.stuefe at gmail.com
Tue Dec 13 13:52:32 UTC 2016
I try to build a 32bit VM (from the jdk9/hs repository) on Windows.
The build fails when it tries to run the freshly built VM during the build:
-c /cygdrive/c/d031900/openjdk/jdk9-hs2/output-32bit/jdk/bin/java -Xms64M
-Xmx1024M -XX:ThreadStackSize=768 -esa -ea -cp
Error occurred during initialization of VM
Could not reserve enough space for 1048576KB object heap
Basically, the VM under <output>/jdk cannot be started with 1GB heap. I
assume the same would be true for the build result VM, but cannot verify
this as the build does not finish.
Drilling down I found that when trying to allocate the java heap,
VirtualAlloc fails with ERROR_NOT_ENOUGH_MEMORY.
Drilling further down I found - when looking at the address space with
VMMap - that there is indeed no adress space hole large enough to hold 1GB.
But no culprit stands out immediately.
Does anyone else experience similar problems? Would it be ok to reduce the
-Xmx setting for the 32bit build on windows?
Thank you, Thomas
More information about the hotspot-dev