cp-helm-charts icon indicating copy to clipboard operation
cp-helm-charts copied to clipboard

prometheus jmx-exporter fails with UseCGroupMemoryLimitForHeap error

Open Ceddec123 opened this issue 3 years ago • 0 comments

Hi,

I'm using confluentinc/cp-schema-registry (image tag 7.2.1) with prometheus jmx-exporter. The jmx-exporter pod fails with following error: Unrecognized VM option 'UseCGroupMemoryLimitForHeap' Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.

It seems to be coming for there: https://github.com/confluentinc/cp-helm-charts/blob/3ffbdf93dad1baf8a3c9a58a92b8e44bb848cd1c/charts/cp-schema-registry/templates/deployment.yaml#L48

and be related to an update from Java JDK8 to JDK 11 that doesn't support UseCGroupMemoryLimitForHeap option anymore. https://support.circleci.com/hc/en-us/articles/360048152911-Java-Builds-Fail-With-Unrecognized-VM-option-UseCGroupMemoryLimitForHeap-

Can you help?

Thanks

Ceddec123 avatar Apr 17 '23 14:04 Ceddec123