当前位置:网站首页>Jcmd of JVM command: multifunctional command line
Jcmd of JVM command: multifunctional command line
2022-07-07 06:08:00 【Zhang Junjie 1994】
Study Silicon Valley Song Hongkang JVM From entry to mastery Learning notes of
summary
stay jdk1.7 in the future , Added this command line tool ,jcmd, This tool is like a Swiss Army knife , Integrated jstat All other command functions , For example, with jcmd Command to export the heap 、 Memory usage 、 see Java process 、 Export thread information 、 perform GC、JVM Running time and so on .
jcmd Yes jmap Most of the functions , And in Oracle It is also recommended on the official website of jcmd Name substitution jmap command .
Basic grammar
jcmd -l
List all JVM process

The above operation is similar to jsp It's very similar
jcmd Process number help
For the specified process , What commands can be used

jcmd Process number Specific commands
Displays the data of the command for the specified process
Replace the previous operations according to the above command :
Thread.print Can replace jstack Instructions
GC.class_histogram Can replace jmap Medium -histo operation
GC.heap_dump Can replace jmap Medium -dump operation
GC.run You can see GC Implementation of
VM.uptime You can see the total execution time of the program , Can replace jstat Directive -t operation
VM.system_properties Can replace jinfo -sysprops process id
VM.flags Can get JVM Configuration parameter information of
Print thread information 
adopt Thread.print Can replace jstack Instructions Check whether the program has deadlock 
GC.heap_dump Can replace jmap Medium -dump operation 
Generates a heap dump

Display the parameters of virtual machine configuration
边栏推荐
- [solved] record an error in easyexcel [when reading the XLS file, no error will be reported when reading the whole table, and an error will be reported when reading the specified sheet name]
- Flask 1.1.4 werkzeug1.0.1 analyse du code source: processus de démarrage
- If you don't know these four caching modes, dare you say you understand caching?
- Three level menu data implementation, nested three-level menu data
- Loss function and positive and negative sample allocation in target detection: retinanet and focal loss
- Convert numbers to string strings (to_string()) convert strings to int sharp tools stoi();
- [daily training -- Tencent selected 50] 235 Nearest common ancestor of binary search tree
- Flinksql read / write PgSQL
- 【SQL实战】一条SQL统计全国各地疫情分布情况
- Check point: the core element for enterprises to deploy zero trust network (ztna)
猜你喜欢

关于STC单片机“假死”状态的判别

Interview skills of software testing

Reading notes of Clickhouse principle analysis and Application Practice (6)

Randomly generate session_ id

Career experience feedback to novice programmers

Reptile exercises (III)

测试开发基础,教你做一个完整功能的Web平台之环境准备

Dc-7 target

Vscode for code completion

Bypass open_ basedir
随机推荐
Ctfshow-- common posture
Interview questions and salary and welfare of Shanghai byte
[FPGA tutorial case 14] design and implementation of FIR filter based on vivado core
Loss function and positive and negative sample allocation in target detection: retinanet and focal loss
【FPGA教程案例13】基于vivado核的CIC滤波器设计与实现
Ten stages of becoming a Senior IC Design Engineer. What stage are you in now?
Add salt and pepper noise or Gaussian noise to the picture
Cf:c. column swapping [sort + simulate]
改变ui组件原有样式
Red Hat安装内核头文件
CTFshow--常用姿势
cf:C. Column Swapping【排序 + 模拟】
Flask1.1.4 werkzeug1.0.1 source code analysis: start the process
Go 語言的 Context 詳解
Three level menu data implementation, nested three-level menu data
nVisual网络可视化
原生小程序 之 input切換 text與password類型
EMMC打印cqhci: timeout for tag 10提示分析与解决
Deep clustering: joint optimization of depth representation learning and clustering
线性回归