解决 k8s 里 java pod 被 oom kill

oom kill

Posted on 2025-08-14 14:06:24 in Java   阅读(92) Last updated on 2025-08-20 15:04:40

unset JAVA_TOOL_OPTIONS
jcmd 1 VM.flags
jcmd 1 VM.native_memory summary

jstat -gc 1 1s

ps -eL | grep java | wc -l
jcmd 1 Thread.print | grep -c “java.lang.Thread.State”