Unrecognized VM option error in kubernetes

5/20/2021

I have updated FROM statement of my dockerfile to openjdk11(alpine) from openjdk8 and as result I am getting the following error in kubernetes pods logs and pods are failing in crashloopbackoff

ERROR MESSAGE:::::::-> 
Unrecognized VM option 'UseParNewGC'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

Is there any argument in the deployment file needs to change as I am using openjdk11 alpine in place of jdk alpine ??

-- Monty
devops
dockerfile
java
kubernetes

0 Answers