java 8 Docker Improperly specified VM option 'InitialRAMPercentage=XX'

9/30/2019

When setting InitialRAMPercentage or MaxRAMPercentage on graalvm-ce:19.2.0.1 (java 8u222) running in k8s I get Improperly specified VM option 'InitialRAMPercentage=50' running in k8s.

I'm setting the options as per documentation:

-XX:+UseContainerSupport -XX:MaxRAMPercentage=80
-- Alberto C
docker
java
java-8
kubernetes
scala

1 Answer

9/30/2019

Apparently this is a known bug see JDK-8219312 : -XX:MaxRAMPercentage doesn't recognise integer number correctly.

I solved this by changing my java options to:

-XX:+UseContainerSupport -XX:MaxRAMPercentage=80.0 
-- Alberto C
Source: StackOverflow