我需要一些信息:
我有 2 台带有 TOMCAT 7.0.28 和 JAVA jdk1.7.0_05 的 redhat 6.1 Linux 服务器
在 192.168.1.20(TOM04) 我有 1 个带有 MBEAN “java.lang:type=MemoryPool,name=Perm Gen”的实例 TOMCAT 7
在 192.168.1.21(TOM01) 我有 1 个带有 MBEAN “java.lang:type=MemoryPool,name=PS Perm Gen”的实例 TOMCAT 7
为什么MBEAN不像“PERM GEN && PS PERM GEN”是什么意思?(我想要PS Perm Gen无处不在)
http://img27.imageshack.us/img27/5803/tom01u.png
http://img839.imageshack.us/img839/7539/tom04.png
Java 版本相同: java -version java version "1.7.0_05" Java(TM) SE Runtime Environment (build 1.7.0_05-b06)
setnenv.sh 192.168.1.20(TOM04):
!/bin/bash
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CATALINA_HOME/lib 导出 LD_LIBRARY_PATH
导出 JAVA_HOME=/usr/java/default
JAVA_OPTS="$JAVA_OPTS -Xmx1024m -Xms512m -Xmn384m -server -XX:MaxPermSize=384m" JAVA_OPTS="$JAVA_OPTS -DLOG_ROOT_PATH=/opt/applogs/INSTANCE01" JAVA_OPTS="$JAVA_OPTS -Dcom.ogige.environment=PRODUCTION" JAVA_OPTS ="$JAVA_OPTS -XX:+HeapDumpOnOutOfMemoryError" JAVA_OPTS="$JAVA_OPTS -XX:HeapDumpPath=/opt/applogs" JAVA_OPTS="$JAVA_OPTS -XX:ParallelGCThreads=2" JAVA_OPTS="$JAVA_OPTS -XX:SurvivorRatio=8"
导出 JAVA_OPTS=$JAVA_OPTS
setenv.sh 192.168.1.21(TOM01):
!/bin/bash
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CATALINA_HOME/lib 导出 LD_LIBRARY_PATH
导出 JAVA_HOME=/usr/java/default
JAVA_OPTS="$JAVA_OPTS -Xmx1024m -Xms512m -Xmn384m -server -XX:MaxPermSize=384m" JAVA_OPTS="$JAVA_OPTS -DLOG_ROOT_PATH=/opt/applogs/INSTANCE01" JAVA_OPTS="$JAVA_OPTS -Dcom.Ogige.environment=PRODUCTION" JAVA_OPTS ="$JAVA_OPTS -XX:+HeapDumpOnOutOfMemoryError" JAVA_OPTS="$JAVA_OPTS -XX:HeapDumpPath=/opt/applogs" JAVA_OPTS="$JAVA_OPTS -XX:ParallelGCThreads=2" JAVA_OPTS="$JAVA_OPTS -XX:SurvivorRatio=8"
导出 JAVA_OPTS=$JAVA_OPTS