VISUALVM is a tool for performance tuning to monitor, display local, or remote server JVM work. With VISUALVM, we can monitor the various sub-pools of JVM memory, CPU, garbage collector, and so on, to discover potential leak points and configuration problems in program code. In addition, VISUALVM is a more practical visual profiling tool that comes with the JDK.
IDEA 1: Remote connection through SSH tunneling through isolated network access to production environment
Java has a third-party package that handles the SSH protocol, and the SSH tunnel can be done as long as the OpenSSH server is installed on the side.
Therefore, only need to develop a VISUALVM new remote connection plug-in, can penetrate the isolated network in VISUALVM visual interface, profling production environment host.
Of course, security and permissions need to be considered at the same time.
Idea 2: Make remote and on-premises features consistent
VISUALVM can be used to analyze cups, thread, heap, sample CPU and memory, heap dump, etc.
But most features are limited to local.
Although VISUALVM also provides remote access functionality, its functionality has shrunk dramatically. An official list of features is as follows:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6D/CA/wKioL1VsE9XxaEihAAGCcVSLCGg843.jpg "title=" 65.JPG "alt=" Wkiol1vse9xxaeihaagccvslcgg843.jpg "/>
Fortunately VISUALVM is open source, in order to realize the function of idea 2, we just need to improve the implementation of VISUALVM, introduce a special remote agent (replace JSTATD). This agent is used to access native Java processes. This allows the remote access of the VISUALVM to be mirrored locally, while also having all the local functionality. If idea 1 and Idea 2 were to be achieved, I think VISUALVM would be more widely used.
Ps:java AC Group:457036818
This article is from the Java Learning Video tutorial blog, so be sure to keep this source http://10239772.blog.51cto.com/10229772/1657158
Java tutorials Some ideas for enhancing VISUALVM