欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

配置Jconsole监控Jboss性能

程序员文章站 2022-07-15 14:42:23
...
在standalone.bat中添加如下配置
-------------------------------------------
set JAVA_OPTS=%JAVA_OPTS% -Djava.rmi.server.hostname=127.0.0.1  -Dcom.sun.management.jmxremote.port=8950   -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false
set JAVA_OPTS=%JAVA_OPTS% -Djboss.modules.system.pkgs=org.jboss.byteman,org.jboss.logmanager
set JAVA_OPTS=%JAVA_OPTS% -Djava.util.logging.manager=org.jboss.logmanager.LogManager
set JAVA_OPTS=%JAVA_OPTS% -Xbootclasspath/p:%JBOSS_HOME%/modules/system/layers/base/org/jboss/logmanager/main/jboss-logmanager-1.5.2.Final.jar
---------------------------------------------
 
cmd →  jconsole 127.0.0.1:8950
 
注:
-Dcom.sun.management.jmxremote.authenticate=false 表示没有权限控制
-Dcom.sun.management.jmxremote.ssl=false 表示不使用ssl
 


问题一:
java.lang.RuntimeException: JBAS014670: Failed initializing module org.jboss.as. logging
Caused by: java.util.concurrent.ExecutionException: java.lang.IllegalStateExcept ion:
 JBAS011592: The logging subsystem requires the log manager to be org.jboss.logmanager.LogManager.
 The subsystem has not be initialized and cannot be used. To use JBoss Log Manager you must add the system property "java.util.logging.manager" and set it to "org.jboss.logmanager.LogManager"
 
添加:set JAVA_OPTS=%JAVA_OPTS% -Djava.util.logging.manager=org.jboss.logmanager.LogManager
 
问题二:
java.lang.IllegalStateException: The LogManager was not properly installed (you  must set the "java.util.logging.manager" system property to "org.jboss.logmanager.LogManager")
 
添加:
set JAVA_OPTS=%JAVA_OPTS% -Djboss.modules.system.pkgs=org.jboss.byteman,org.jboss.logmanager
set JAVA_OPTS=%JAVA_OPTS% -Xbootclasspath/p:%JBOSS_HOME%/modules/system/layers/base/org/jboss/logmanager/main/jboss-logmanager-1.5.2.Final.jar

 

相关标签: jboss jconsole