About the following message:
Could not reserve enough space for 3145728KB object heap
I need some tips to understand what's going on
Points & Observations:
- Running over Windows 10 x64 (16G Memory)
- It only happens using this distribution: https://jdk.java.net/java-se-ri/8-MR3
- It works fine using the build from AdoptOpenJDK: https://adoptopenjdk.net/?variant=openjdk8&jvmVariant=hotspot
- At
pom.xml
, I've tried to add the following line:<extraJvmArgs>-Xms1G -Xmx4G -Xss1M -XX:-UseGCOverheadLimit -XX:MaxHeapSize=4G</extraJvmArgs>
. But it "complains"The specified size exceeds the maximum representable size.
(The original Xmx and MaxHeapSize was 3G)
Main Objective: To compile a project that was done previously using Oracle JDK8 with the Open JDK8
Any "lights"?
------ Edit
arg -d64
returns Error: This Java instance does not support a 64-bit JVM.
Maybe it's 32 bits the compilation from Java website?