Skip to content

VisualVM – Remote Java Processes

June 16, 2017

VisualVM is pretty straight forward for the local java processes.

If you have a remote java process where you want to view the permgen, number of classes loaded, profiling (Remote Profiling is available only for the processes using JDK 1.8), jstatd comes for the rescue

Two steps to follow

  1. Instantiate jstatd
    1. Create a policy file (eg., – jstatd.policy)
      grant codebase “file:<path to jdk>/lib/tools.jar” {
    2. Start the jstatd
      ./jstatd -p <PORT NUMBER><PATH TO>/jstat.policy -J-Djava.rmi.server.hostname=<SERVER IP> -J-Djava.rmi.server.logCalls=true
  2. Connect the local VisualVM to the remote jstatd process using the <PORT NUMBER> given above


No comments yet

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: