当前位置:网站首页>Jvm. Profiling tools (jconsole, jvisualvm, arthas, jprofiler, mat)
Jvm. Profiling tools (jconsole, jvisualvm, arthas, jprofiler, mat)
2022-08-11 00:20:00 【idle cat】
JVM commands
The most commonly used commands when locating and troubleshooting problems include: jps (process), jmap (memory), jstack (thread), jinfo (parameter), etc.
jps: Query all Java process information on the current machine
jmap: output memory of a Java process
jstack: print thread stack information of a Java thread
jinfo: for viewing jvm
JDK commands
jconsole monitoring interface
window, cmd, directly enter jconsole and press Enter.

jvisualvm
Window visual interface, Ctr+R, CMD, enter jvisualvm and press Enter, after opening the main interface, click [Load] under [File]

Select file type: "Heap Dump..."

Click "Open"
View the classes, you can see that different classes occupymemory size:

For example, click "java.lang.String" to enter to view the object:

The system is familiar with the parameters

Thread

Arthas
Ali detection command tool
Ali open source product components, official website: Introduction| arthas
Third-party detection software
MAT
MAT (MemoryAnalyzerTool) is a memory analysis tool provided by Eclipse. As a relatively easy-to-use tool in Java memory analysis, mastering the basic usage of MAT is basically one of the most important basic skills in positioning problems.
Download:
Link: https://pan.baidu.com/s/1Qyy1bJQtosNlJ9VOt9GzVA
Extraction code: 8hgd
Directory after decompression:

Main interface, open file, open heap dump...

Select the first one:
Interface after loading:

Jprofiler
Visual analysis tools under the window
Link: https://pan.baidu.com/s/13o34g0OCueqp_7Mn-slj3A Extraction code: vgs2
Version: JProfiler 12.0.4
边栏推荐
猜你喜欢

① 数据库介绍 及 关系型数据库的关系代数表达式

YOLOv5的Tricks | 【Trick12】YOLOv5使用的数据增强方法汇总

Where can I download IEEE papers?

IEEE的论文哪里可以下载?

Special class and type conversion

Introduction to Qt (6) - Implementation of the lottery system

给肯德基打工的调料商,年赚两亿

2. 依赖管理和自动配置

时间戳转换为日期格式、获取当前时间戳

EPro-PnP: Generalized End-to-End Probabilistic Perspective-n-Points for Monocular Object Pose Est...
随机推荐
[21-day learning challenge - kernel notes] (5) - devmem read and write register debugging
LENS CRA和SENSOR CRA匹配问题解析
学习Apache ShardingSphere解析器源码(一)
虚拟电厂可视化大屏,深挖痛点精准减碳
如何便捷获取参考文献的引用格式?
李彦宏拆墙交朋友,大厂“塑料友情”能否帮百度啃下硬骨头?
工程师如何对待开源
In 22 years, the salary of programmers nationwide in January was released, only to know that there are so many with annual salary of more than 400,000?
5. Lombok
How to determine how many bases a number is?
如何破坏Excel文件,让其显示文件已损坏方法
nodejs项目连接mysql数据库
web 性能提升(将持续更新……)
② 关系数据库标准语言SQL 数据定义(创建、修改基本表)、数据更新(增删改)
[21天学习挑战赛——内核笔记](五)——devmem读写寄存器调试
【redis】发布和订阅消息
5. Lombok
Difference Between Image Recognition and Semantic Segmentation
【经典排序】快速排序
微信小程序获取当前页面的url和参数
