内存溢出排查步骤:
确定是哪个内存区域溢出:是年轻代,还是老年代:通过jstat -gcutil在线看(如果年轻代都内存不断上升,并且100%,minor gc,
但是还是不释放的场景),通过gc.log离线看(启动JVM时设置如下参数);
JAVA_OPT=”
JAVAOPT−XX:+UseConcMarkSweepGC−XX:+UseCMSCompactAtFullCollection−XX:CMSInitiatingOccupancyFraction=70−XX:+CMSParallelRemarkEnabled−XX:SoftRefLRUPolicyMSPerMB=0−XX:+CMSClassUnloadingEnabled−XX:SurvivorRatio=8−XX:+DisableExplicitGC”JAVAOPT=”
{JAVA_OPT} -verbose:gc -Xloggc:/data/load2hbase/mps-push-server/gc.log -XX:+PrintGCDetails -XX:+PrintGCDateStamps”
内存溢出排查步骤:
最新推荐文章于 2024-07-27 16:44:20 发布