Friday, September 23, 2016

remote monitor and dump the java process

remote monitor and dump the java process: 1) in the machine that java process is running. create following filw with content: file name:jstatd.all.policy content: grant codebase "file:${java.home}/../lib/tools.jar" { permission java.security.AllPermission; }; do not change the above content, event in windows, the path even looks not reflect right path. 2) start jstatd with following way with exactly copy jstatd -J-Djava.security.policy=jstatd.all.policy 3) in remnote monitoring machine, start jvisualVM add remote machine name or IP, the java process will be fecthed, you can monitor and profile now.

No comments:

Post a Comment