Question: Use jstatd+VisualVM to simply remotely monitor the JVM on the cloud host
(1): Find the JDK installation location on the cloud host and enter the bin folder
(2): Write a security policy file
The contents of the file are as follows:
permission java.security.AllPermission;
};
Remember to give permission to this file.
(3): Modify host
It can be seen that there is no real IP host in the hosts of the Alibaba Cloud host, so we cannot monitor it on the remote end.
We need to add our real ip and our own machine name to this file
save after modification
(4) Start Jstatd
Go back to the JDK bin folder and execute the startup command
(5) Start monitoring
Start the VisualVM that comes with jdk1.6 or above on the remote side, and add the remote host IP and port
OK in the remote to easily monitor the JVM situation.