Java tutorials Some ideas for enhancing VISUALVM

Source: Internet
Author: User
Tags openssh server visualvm

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.