jconsole 监控 was 内存使用情况

A. setup jvm opt
1.WebSphere服务器端增加JVM启动参数如下(可以在server.xml或9043/admin管理控制台增加):
网页修改位置:Servers->Server types->WebSphere application servers->server1(随应用名而定)->Process definition->Java Virtual Machine
-Djavax.management.builder.initial=
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.port=1099
2. WebSphere服务器调整JMX连接方式为:
SOAPConnector
3.重启WebSphere

B. use follow cmd to start jconsole
@echo off
set WAS_HOME=XXX
set WAS_JDK_HOME=XXX(最好用ibm的jdk)
start %WAS_JDK_HOME%/bin/jconsole -J-Djava.class.path=%WAS_JDK_HOME%\lib\tools.jar;%WAS_JDK_HOME%\lib\jconsole.jar;%WAS_HOME%\runtimes\com.ibm.ws.admin.client_7.0.0.jar service:jmx:iiop://XXX:1099/jndi/JMXConnector

你可能感兴趣的:(JConsole)