运行standalone.sh文件时的错误日志。我什至检查清单文件,但没有针对特定错误的任何解决方案。
JBoss Bootstrap Environment
JBOSS_HOME: /root/EAP-7.0.0_FRA
JAVA: /opt/jdk1.8.0_45//bin/java
JAVA_OPTS: -server -verbose:gc -Xloggc:"/root/EAP-7.0.0_FRA/standalone/log/gc.log" -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=3M -XX:-TraceClassUnloading -Xbootclasspath/p:/EAP-7.0.0_FRA/modules/system/layers/base/org/jboss/logmanager/main/jboss-logmanager-2.0.3.Final-redhat-1.jar -agentlib:jdwp=transport=dt_socket,address=9798,server=y,suspend=n
Listening for transport dt_socket at address: 9798
Exception in thread "main" java.lang.NoSuchMethodException: No main class defined for Module "org.jboss.logmanager:main" from local module loader @fad74ee (finder: local module finder @1a1d6a08 (roots: /root/EAP-7.0.0_FRA/modules,/root/EAP-7.0.0_FRA/modules/system/layers/base))
at org.jboss.modules.Module.run(Module.java:313)
at org.jboss.modules.Main.main(Main.java:507)
在JVM参数中为Jconsole添加的行下面。
JAVA_OPTS="-Xms1303m -Xmx1303m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true"
JAVA_OPTS="$JAVA_OPTS -Djboss.modules.system.pkgs=$JBOSS_MODULES_SYSTEM_PKGS -Djava.awt.headless=true"
JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote"
JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management
.jmxremote.port=9010"
JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.local.only=false"
JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.authenticate=false"
echo ="$JAVA_OPTS -Xbootclasspath/p:/root/EAP-7.0.0_FRA/modules/system/layers/base/org/jboss/log4j/logmanager/main/log4j-jboss-logmanager-1.1.2.Final-redhat-2"
JAVA_OPTS="$JAVA_OPTS -Xbootclasspath/p:/root/EAP-7.0.0_FRA/modules/system/layers/base/org/jboss/logmanager/main/jboss-logmanager-2.0.3.Final-redhat-1.jar"
答案 0 :(得分:0)
要通过JConsole连接到JBoss EAP 7,您可以按照以下步骤操作:
./ standalone.sh -c standalone-ha.xml -bmanagement YOUR_IP_ADDRESS
service:jmx:remote + http://YOUR_IP_ADDRESS:9990