Java process monitoring with visual VM

Start up Jstatd on the server

/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.201.b09-2.el7_6.x86_64-debug/bin/jstatd -J-Djava.security.policy=/home/admin/.jstatd.all.policy&

cat /home/admin/.jstatd.all.policy
grant codebase “file:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.201.b09-2.el7_6.x86_64-debug/lib/tools.jar” {
permission java.security.AllPermission;
};

Install and start visualvm on your local

https://visualvm.github.io/download.html

Start the tunnel to the remote server
ssh -v -D 9696 @

Setup SOCKS proxy on the VISUALVM app.

localhost 9696

Add remote host using the remote IP.

Leave a Reply

Your email address will not be published. Required fields are marked *