jdk.internal.platform.cgroupv1.Metrics.initContainerSubSystems() can fail with the following exception if the system does not have /proc/self/cgroup or /proc/self/mountinfo files.
java.lang.ExceptionInInitializerError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at jdk.internal.platform.Metrics.systemMetrics(Metrics.java:59)
at jdk.internal.platform.Container.metrics(Container.java:42)
at sun.management.OperatingSystemImpl.<init>(OperatingSystemImpl.java:46) at sun.management.ManagementFactoryHelper.getOperatingSystemMXBean(ManagementFactoryHelper.java:106) at java.lang.management.PlatformComponent$7.getMXBeans(PlatformComponent.java:157) at java.lang.management.PlatformComponent.getMXBeans(PlatformComponent.java:377) at java.lang.management.ManagementFactory.getPlatformMBeanServer(ManagementFactory.java:472)
...