2-5 监控WebSphere 7
最后更新于:2022-04-02 07:40:51
#### 说在前面,一下方法只支持监控JVM,不支持WebSpere软件本身性能监控。
------------
#### 监控WebSphere的JVM虚拟机
开启JMX监控端口
进入WebSphere Administrative Console open Servers → Server Types → WebSphere application servers → WAS_SERVER_NAME → Java and Process Management → Process definition → Java Virtual Machine.
在“Generic JVM arguments”增加下面环境变量:
```shell
-Djavax.management.builder.initial=
```
然后再进入 WebSphere Administrative Console, open Servers → Server Types → WebSphere application servers → WAS_SERVER_NAME → Java and Process Management → Process definition → Java Virtual Machine → Custom properties.
```shell
增加下面几个环境变量:
Name: java.rmi.server.hostname
Value: JMX_HOST
Name: javax.management.builder.initial
Value: none
Name: com.sun.management.jmxremote
Value: true
Name: com.sun.management.jmxremote.port
Value: JMX_PORT
Name: com.sun.management.jmxremote.ssl
Value: false
Name: com.sun.management.jmxremote.authenticate
Value: false
```
';