当前位置:网站首页>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
边栏推荐
- 14. Thymeleaf
- 9. Rest 风格请求处理
- 3. 容器功能
- EN 12467纤维水泥平板产品—CE认证
- Qt入门(六)——抽奖系统的实现
- EPro-PnP: Generalized End-to-End Probabilistic Perspective-n-Points for Monocular Object Pose Est...
- “蔚来杯“2022牛客暑期多校训练营4 ADHK题解
- 【openpyxl】过滤和排序
- YOLOv5的Tricks | 【Trick11】在线模型训练可视化工具wandb(Weights & Biases)
- Lens filter---about day and night dual-pass filter
猜你喜欢
Promise in detail
3d打印出现stl文件物体不是流形,意味着不是水密体...解决办法
[Excel知识技能] 将数值格式数字转换为文本格式
力扣------使用最小花费爬楼梯
"NIO Cup" 2022 Nioke Summer Multi-School Training Camp 3 DF Problem Solving
2. Dependency management and automatic configuration
10. Notes on receiving parameters
从0开始设计JVM ,忘记名词跟上思路一次搞懂
如何破坏Excel文件,让其显示文件已损坏方法
Starting a new journey - Mr. Maple Leaf's first blog
随机推荐
只会懒汉式和饿汉式 你还不懂单例模式!
11. Custom Converter
12. 处理 JSON
Starting a new journey - Mr. Maple Leaf's first blog
【经典排序】快速排序
14. Thymeleaf
云原生-VMware虚拟机安装Kubesphere实战(一)
深度解析volatile关键字(保证够全面)
[Excel knowledge and skills] Convert "false" date to "true" date format
Design and Realization of Employment Management System in Colleges and Universities
YOLOv5的Tricks | 【Trick13】YOLOv5的detect.py脚本的解析与简化
LENS CRA和SENSOR CRA匹配问题解析
Analysis of LENS CRA and SENSOR CRA Matching Problems
[Data Visualization] Chart Design Principles
How engineers treat open source
"NIO Cup" 2022 Nioke Summer Multi-School Training Camp 3 DF Problem Solving
ADC和DAC记录
小程序onPageNotFound的坑
Introduction to Qt (6) - Implementation of the lottery system
14. Thymeleaf