Java and Kuberentes is a bit complicated. Java tries to autodetect various system information (for example Memory, Cpu count) and autotunes the java virtual machine. These detections are off for containers, as java might see a lot of cpu cores, but the container is limited to a few. Explicit settings for memory (Xms, Xmx) and cpu (
) are advised.
Error creating bean with name 'gcRatios' defined in cern.acet.metrics.util.MetricsConfig:
Bean instantiation via factory method failed; nested exption is ...
cern java instrumentation assumes that the parallel Garbage collector is running. Other garbage collectors don't have this bean. Explicitly setting CPU count or garbage collector should help.
- 30 May 2022