I'm running a java application on Kubernetes and the container shuts down due to a memory problem.
Is it possible for a java app running these envs to exceed 6GB of memory used? If so, would you please provide some of the most common reasons?
2023-05-16T23:33:12.293434619+02:00 stdout F JAVA_OPTS: -server -Xms2048m -Xmx3448m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=512m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Djboss.bind.address=0.0.0.0 -Xlog:gc*::time --add-exports=java.base/sun.nio.ch=ALL-UNNAMED --add-exports=jdk.unsupported/sun.misc=ALL-UNNAMED --add-exports=jdk.unsupported/sun.reflect=ALL-UNNAMED
I've tried searching for a way to limit the total memory allocated by the application and expected to use this knowledge, but found nothing.