Search

Dark theme | Light theme

June 29, 2010

Monitoring Remote Java Applications with jstatd

To monitor a remote Java application with VisualVM is easy when we use jstatd. We need to start jstatd on the remote machine, make a connection from VisualVM to the remote machine and we can monitor all running Java applications.

Sample security policy file:

grant codebase "file:${java.home}/../lib/tools.jar" {

   permission java.security.AllPermission;

};

We can run jstatd with:

$ jstatd -J-Djava.security.policy=jstatd.all.policy