Step to run the Java VisualVM.
- echo "%JAVA_HOME%"
(To show your installed JDK path. e.g. C:\Program Files\Java\jdk1.6.0_25\bin) - cd "%JAVA_HOME
(Go to your JDK bin) - jvisualvm.exe
(Run Java VisualVM tool)
- Unknow Application (pid 3164)
- JDeveloper 11g (pid 248)
- Tomcat (pid 3560)
Double the java application you want to monitor. I chose Tomcat as an example. You can select Monitor, Threads, Sampler and Profiler tabs to view the statistic.
To monitor remote server (JBOSS), you could
- Right click "Remote" and select "Add Remote Host..."
- Input your Host Name such as 192.168.254.111
- Click "Advanced Settings" and input Post 2020 (jstsd port - RMI Broadcasting - Listener) and set the Refresh Interval
- Then you will see 192.168.254.111 under remote
- Right click 192.168.254.111 and select "Add JMX Connection"
- Input Port "1090" (JMX port setting in Jboss - Check your server setting)
- Input Username and password
- JMX port in JBoss server : 1090
- jstatd port in JBoss server : 2020
- jstatd port in local (PC) Tomcat server (your IP) should be as default
No comments:
Post a Comment