JAVA performance Optimization (VisualVM)

Source: Internet
Author: User
Tags visualvm

Technology Discovery:
Recently tested colleagues shared a software Java ISUALVM for running performance monitoring with Java, and after jdk1.6 it appeared and lurked in the bin directory,
This simple and powerful tool has not been discovered until now because the version update information is rarely followed.
Technical Introduction:
The VISUALVM is a visualizer that fully integrates the many JDK command-line tools to provide powerful analytical capabilities, all of which are free as well as JDK.
It includes command-line tools such as Jstat, JConsole, Jstack, Jmap, and Jinfo, which are consistent with the standard version of the JDK. You can use VISUALVM to generate and
Analyze massive amounts of data, track memory leaks, monitor the garbage collector, perform memory and CPU analysis, and also support browsing and operations on Mbeans. Although visual-
The VM itself will run on the JDK6 version, but it will be able to monitor the JDK1.4 version of the program.
It lurks in the bin directory of your JDK, and the middle of this jvisualvm.exe is the start of Java ISUALVM,

The interface is very rich, the left side is the application display bar including local and remote, all applications do not need you to register in the launcher, it will automatically display

At the same time you see from the interface, it has a very rich function, of course, after the extension of the plug-in, its function will be more rich.
With it you can visualize the performance and memory footprint of your application, monitor the application's threads, Profile application performance, and memory allocation,
Perform a thread dump or heap dump (heap dump), analyze the core dump, and save the snapshot to analyze the application offline.
The specific function introduction and the application will accompany my study in the later essays to continue to share with everybody, below share what I did yesterday visualvm to eclipse integration.
VisualVM integration into the Eclipse IDE
  1, download the Chinese version of the VISUALVM launcher Http://java.net/projects/visualvm/downloads/download/release134/visualvm_134-ml.zip
2, download the plugin for VISUALVM to eclipse http://java.net/projects/visualvm/downloads/download/release133/visualvm_launcher_u1_ Eclipse_36.zip
3, download the visualvm_134-ml.zip to the Software installation directory as a separate software application configuration.
I installed it on: D:\DevelopTools\visualvm_134-ml\visualvm_134
4, extract Visualvm_launcher_u1_eclipse_36.zip to eclipse home directory: D:\DevelopTools\YoxosLauncher\visualvm_launcher_u1_eclipse_ 36
(I use the YoxoslauncherIntegrated version of Eclipse)
5, adding a new plugin to eclipse: Help--->install new software
Then add--->local just unzipped the visualvm_launcher_u1_eclipse_36 directory
OK after the display of the following interface is a success, direct next installation on the line



6, the configuration is successful after installation:
The configuration of VISUALVM in window's preferences needs to be configured with its initiator (the Visualvm.exe execution file under visualvm_134 bin) and the JDK directory.(new version of VISUALVM Visualvm.exe in the bin directory of the JDK, Name: Jvisualvm.exe)


7, after the configuration completes VISUALVM, then carries on the configuration which launches the registration:, chooses the initiator configuration for your small program


all the installation and configuration work is over and you can test it now.

(1)Overall overview of Project testing:

(2)Monitoring visualization of Project operation

(3)Threading Analysis for Project runs

(4)Performance analysis of specific methods of project operation

(5)GC Analysis of Project operation


The function is too rich, just show these, the other people to dig it
Massive data analysis, full-scale performance monitoring, free, simple, overall this extension application is still quite good.

Appendix:In fact, this is only part of the simple installation application, the most powerful or VISUALVM provides a lot of API interface for free use, so you can write
The more powerful VISUALVM plug-in that suits you. The specific writing application will continue to be shared with you in future essays.
let's start with a picture:

JAVA performance Optimization (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.