WAS configuration visualVM
- In the console was: find the application server --java and process management - Process definition --JAVA VM / Generic JVM arguments, the corresponding English Application servers> server1> Process definition> Java Virtual Machine / Generic JVM arguments
配置:-Djavax.management.builder.initial= -Dcom.sun.management.jmxremote
Note: There are reserved space after the equals sign.
- In the / usr / IBM / WebSphere7 under / AppServer / java / jre / lib / management directory, modify management.properties file, add the following:
com.sun.management.jmxremote.port=8999
com.sun.management.jmxremote.authenticate=false
com.sun.management.jmxremote.ssl=false
Note: Before configuring, first use the netstat -ano | grep 8999 to check whether is occupied, the configuration is complete to restart the application.
Application Configuration visualVM
- Increase in the application startup script the following parameters:
-Djava.rmi.server.hostname=192.168.1.1
-Dcom.sun.management.jmxremote.port=8999
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false
nohup java -Djava.rmi.server.hostname=192.168.1.1 -Dcom.sun.management.jmxremote.port=8999 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Xms512M -Xmx1024M SpringBootDemo.jar
Note: if 8999 port configuration of the same configuration port inspection before being occupied.