当前位置:网站首页>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
边栏推荐
- 鲲鹏编译调试及原生开发工具基础知识
- SQL injection base
- 图片懒加载(纯手写)
- [Excel knowledge and skills] Convert "false" date to "true" date format
- 如何做专利挖掘,关键是寻找专利点,其实并不太难
- [Excel knowledge and skills] Convert text numbers to numeric format
- YOLOv5的Tricks | 【Trick13】YOLOv5的detect.py脚本的解析与简化
- [Excel知识技能] 将数值格式数字转换为文本格式
- 微信小程序获取当前页面的url和参数
- 什么是“门”电路(电子硬件)
猜你喜欢
随机推荐
C# JObject解析JSON数据
2022.8.10-----leetcode.640
微信小程序内部A页面向内嵌H5页面跳转,并且传参
② 关系数据库标准语言SQL 数据定义(创建、修改基本表)、数据更新(增删改)
8. WEB 开发-静态资源访问
李彦宏拆墙交朋友,大厂“塑料友情”能否帮百度啃下硬骨头?
Software Testing Certificate (1) - Software Evaluator
Design and Realization of Employment Management System in Colleges and Universities
9. Rest style request processing
Software protection scenario of NOR FLASH flash memory chip ID application
“蔚来杯“2022牛客暑期多校训练营4 ADHK题解
Web APIs BOM- 操作浏览器之综合案例
Qt入门(六)——抽奖系统的实现
9. Rest 风格请求处理
Ali P7 bask in January payroll: hard to fill the, really sweet...
2. 依赖管理和自动配置
ADC和DAC记录
Web-based meal ordering system in epidemic quarantine area
云原生-VMware虚拟机安装Kubesphere实战(一)
从0开始设计JVM ,忘记名词跟上思路一次搞懂