Atitit. Software dashboard (2) -- vm subsystem -- Resource occupation monitoring

Source: Internet
Author: User
Tags jconsole

Atitit. Software dashboard (2) -- vm subsystem -- Resource occupation monitoring

Atitit. Software dashboard (2) -- vm subsystem -- Resource occupation monitoring

1. Jvisualvm.exe 2. jprofile3. Heap // permgen monitor

Author: old wow's paw Attilax iron, EMAIL: 1466519819@qq.com

Reprinted please indicate Source: http://blog.csdn.net/attilax

4. Thread

1. jps: view the currently running java Process (like the ps in linux) and display the process number

2. jinfo: Check the jinfo-flagPermSize 2208 (process number) parameter)

3. The jconsole 2208

JConsole

JConsole allows you to visually view the changes in the memory in the JVM. JConsole is a tool provided in JDK 5 and embedded in the upper-right corner. jlele.exe or JConsole. sh is run directly at runtime (graphical interface is required ). On the local Tab page, you can view the java pid. Double-click the pid to view the JVM status of the corresponding process. At the same time, JConsole also supports viewing the remote JVM running status, for details, see the JConsole User Guide.

JConsole displays a lot of information in JVM: memory, thread, class, and MBean. After opening the JConsole memory Tab page, you can see the running status of the JVM memory. This makes the analysis of memory overflow and GC effect more straightforward and clear, as shown in JConsole's running effect 2.

4. jstack 2208 lists all threads and their running statuses.

5. jstat-gcutil 2208 1000 (print information every 1000 milliseconds) 10 (print 10 rows)

6. jmap drops down all the files running in the VM, which is equivalent to a snapshot.

7. JMap is a JDK tool used to analyze JVM memory conditions. It is located in the bin directory of JDK. You can use JMap to view the memory status of each generation in the JVM, the memory usage of objects in the JVM, and export the memory information in the entire JVM.

. Jhat analyzes jmap files from multiple angles

7. Eclipse Memory Analyzer

Eclipse Memory Analyzer is a plug-in provided by Eclipse for analyzing jvm heap dump files. This plug-in allows you to view the Memory usage, reference relationships, and analyze Memory leakage of objects.

The Eclipse Memory Analyzer (MAT) website is http://www.eclipse.org/mat/. you can remotely install this plug-in eclipse. However, this plug-in consumes a lot of memory when analyzing heap dump files. Therefore, it is best to set the jvm memory of eclipse to a larger value before analysis, MAT analyzes the memory usage and reference relationship of objects after the dump file. 3 is shown in

9.

Reference

Use java tools to monitor jvm running status-qileilove-BlogJava.htm

(Impt, detail) JVM memory condition viewing method and analysis tool-xu1314 column-blog channel-CSDN.NET.htm

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.