当前位置:网站首页>Jvm.分析工具(jconsole,jvisualvm,arthas,jprofiler,mat)
Jvm.分析工具(jconsole,jvisualvm,arthas,jprofiler,mat)
2022-08-10 23:47:00 【闲猫】
Jvm 命令
定位排查问题时最为常⽤命令包括:jps(进程)、jmap(内存)、jstack(线程)、jinfo(参数)等。
jps:查询当前机器所有Java进程信息
jmap:输出某个 Java 进程内存情况
jstack:打印某个 Java 线程的线程栈信息
jinfo:⽤于查看 jvm
JDK 命令
jconsole 监控界面
window下,cmd下,直接输入jconsole回车即可。

jvisualvm
window可视化界面,Ctr+R,CMD,输入jvisualvm回车,打开主界面后,点击【文件】下【装入】

选择文件类型:“堆Dump ……”

点击“打开”
查看类,可以看到不同类占的内存大小:

比如点击“java.lang.String”进去,查看对象:

系统熟悉参数

线程

Arthas
阿里检测命令工具
阿里开源产品组件,官网:简介 | arthas
第三方检测软件
MAT
MAT(MemoryAnalyzerTool)是Eclipse提供的一个内存分析工具,作为Java的内存分析中一个比较好用的工具,掌握MAT的基本用法基本上算是定位问题中一项最重要的基础技能了。
下载地址:
链接:https://pan.baidu.com/s/1Qyy1bJQtosNlJ9VOt9GzVA
提取码:8hgd
减压后目录:

主界面,打开file,open heap dump…

选择第一个:
加载后界面:

Jprofiler
window下可视化分析工具
链接: https://pan.baidu.com/s/13o34g0OCueqp_7Mn-slj3A 提取码: vgs2
版本:JProfiler 12.0.4
边栏推荐
- 【C语言】二分查找(折半查找)
- Google Chrome73~81版本浏览器的跨域问题解决方案
- How to determine how many bases a number is?
- 7. yaml
- Cache knowledge summary
- Part of the reserve bank is out of date
- Parse method's parameter list (including parameter names)
- There is no recycle bin for deleted files on the computer desktop, what should I do if the deleted files on the desktop cannot be found in the recycle bin?
- 2. Dependency management and automatic configuration
- 翻译软件哪个准确度高【免费】
猜你喜欢

How to recover deleted files from the recycle bin, two methods of recovering files from the recycle bin

Qt入门(六)——抽奖系统的实现

镜头之滤光片---关于日夜两用双通滤光片

服务器小常识

2. Dependency management and automatic configuration

3. 容器功能

【C语言】初识指针

14. Thymeleaf

How to recover data from accidentally deleted U disk, how to recover deleted data from U disk

【C语言篇】表达式求值(隐式类型转换,算术转换)
随机推荐
sqlmap结合dnslog快速注入
Deep Learning Transformer Architecture Analysis
C语言篇,操作符之 移位运算符(>>、<<)详解
Timers, synchronous and asynchronous APIs, file system modules, file streams
2022下半年软考「高项」易混淆知识点汇总(2)
9. Rest style request processing
阿里P7晒出1月工资单:狠补了这个,真香...
工程师如何对待开源
How to determine how many bases a number is?
闭包详解,柯里化的含义及操作方法
SAS数据处理技术(一)
Geogebra 教程之 03 没有铅笔的数学
[C language] Implementation of guessing number game
Blue Hat Cup 2022 web/misc writeup
ROS实验笔记之——UZH-FPV数据集的验证
2. 依赖管理和自动配置
Geogebra 教程之 01 什么是Geogebra,真的可以提高我们数学水平么?
11. Custom Converter
Mathematical modeling preparation knowledge
Design and implementation of flower online sales management system
