Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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
like image 425
Alberto C Avatar asked Sep 30 '19 15:09

Alberto C


1 Answers

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 
like image 139
Alberto C Avatar answered Oct 23 '22 07:10

Alberto C