Java inside docker: What you must know to not FAIL | Red Hat Developer
TIL: (but I didnβt want to!) β To configure your Java/JVM based apps to run in a container (Linux cgroup) environment correctly set these JVM options:
-XX:+UnlockExperimentalVMOptions and -XX:+UseCGroupMemoryLimitForHeap
If you donβt, the JVM does stupid shit π #Java #Docker #Linux #Containers