This section provides a tutorial example on how to use the 'jstat' command with a RMI URL 'rmi://pid@host:port' to access a JVM process on a remote machine.
In the previous section, I used the "jstat" tool to get garbage collection statistic
against a JVM process on the local machine.
Now I want to use the "jstat" tool to get garbage collection statistic
against a JVM process on a remote machine.
Like the "jps" tool, the "jstat" tool also requires that the remote machine running
the "jstatd" server with a RMI registry.
1. Make sure that the "jstatd" server is running on the remote machine: