JBoss监控配置

JBOSS JMX

# For VisualVM profiler. (visual vm package w/ logging package.)

   JAVA_OPTS="-Xshare:off -Djboss.modules.system.pkgs=org.netbeans.lib.profiler.server,org.jboss.logmanager -Dorg.osgi.framework.bootdelegation=org.netbeans.lib.profiler.server,org.netbeans.lib.profiler.server.*"

# Memory config.   

   JAVA_OPTS="$JAVA_OPTS -Xms1024m -Xmx1024m -XX:MaxPermSize=512m -Djava.net.preferIPv4Stack=true"

# JBoss system package config.   

#   JAVA_OPTS="$JAVA_OPTS -Djboss.modules.system.pkgs=$JBOSS_MODULES_SYSTEM_PKGS"

   JAVA_OPTS="$JAVA_OPTS -Djava.awt.headless=true"

# JMX connection config w/    

   JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false"

   JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote"

#   JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.port=9999"

# Logging fix.   

   JAVA_OPTS="$JAVA_OPTS -Djava.util.logging.manager=org.jboss.logmanager.LogManager -Xbootclasspath/p:/opt/wildfly-9.0.0.Final/modules/system/layers/base/org/jboss/logmanager/main/jboss-logmanager-2.0.0.Final.jar -Xbootclasspath/p:/opt/wildfly-9.0.0.Final/modules/system/layers/base/org/jboss/logging/main/jboss-logging-3.2.1.Final.jar -Xbootclasspath/p:/opt/wildfly-9.0.0.Final/modules/system/layers/base/org/jboss/log4j/logmanager/main/log4j-jboss-logmanager-1.1.2.Final.jar"

# OOM event config.   

   JAVA_OPTS="$JAVA_OPTS -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=$JBOSS_HOME/standalone/log"




方法二

   JAVA_OPTS="-Xshare:off -Djboss.modules.system.pkgs=org.jboss.byteman,org.jboss.logmanager"

   JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false"

   JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote"

   JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.port=9999"

   JAVA_OPTS="$JAVA_OPTS -Djava.util.logging.manager=org.jboss.logmanager.LogManager -Xbootclasspath/p:/opt/wildfly-9.0.0.Final/modules/system/layers/base/org/jboss/logmanager/main/jboss-logmanager-2.0.0.Final.jar -Xbootclasspath/p:/opt/wildfly-9.0.0.Final/modules/system/layers/base/org/jboss/logging/main/jboss-logging-3.2.1.Final.jar -Xbootclasspath/p:/opt/wildfly-9.0.0.Final/modules/system/layers/base/org/jboss/log4j/logmanager/main/log4j-jboss-logmanager-1.1.2.Final.jar"


你可能感兴趣的:(JBoss监控配置)