多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
#### 说在前面,一下方法只支持监控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 ```