配置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
上一篇: mavne 修改工程名称
下一篇: Jboss7使用指定jdk(续)
推荐阅读
-
配置Jconsole监控Jboss性能
-
在Linux系统中安装配置性能监控软件Munin的教程
-
mysql性能监控工具Innotop简介及配置_MySQL
-
安装配置MySQLMTOP来监控MySQL运行性能的教程_MySQL
-
MySQL性能监控软件Nagios的安装及配置教程_MySQL
-
mysql性能监控工具Innotop简介及配置_MySQL
-
mysql性能监控工具Innotop简介及配置
-
jstat,jmap,jconsole,jvisualvm,jps,jinfo等JDK系统监控、性能调优工具
-
jstat,jmap,jconsole,jvisualvm,jps,jinfo等JDK系统监控、性能调优工具
-
JConsole远程监控JBoss服务器(转) 应用服务器JBoss虚拟机Java防火墙