当前位置:网站首页>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
边栏推荐
- 360织语发布7.0新品 为党政军、央国企打造专属“统一数字工作空间”
- 深度聚类:将深度表示学习和聚类联合优化
- Flask 1.1.4 werkzeug1.0.1 analyse du code source: processus de démarrage
- [FPGA tutorial case 13] design and implementation of CIC filter based on vivado core
- Flask1.1.4 Werkzeug1.0.1 源码分析:启动流程
- zabbix_ Get test database failed
- Bypass open_ basedir
- 职场经历反馈给初入职场的程序员
- Go语学习笔记 - gorm使用 - gorm处理错误 | Web框架Gin(十)
- cf:C. Column Swapping【排序 + 模拟】
猜你喜欢

话说SQLyog欺骗了我!

JVM命令之 jstack:打印JVM中线程快照
![R language [logic control] [mathematical operation]](/img/93/06a306561e3e7cb150d243541cc839.png)
R language [logic control] [mathematical operation]

CTFshow--常用姿势

【日常训练--腾讯精选50】235. 二叉搜索树的最近公共祖先

一名普通学生的大一总结【不知我等是愚是狂,唯知一路向前奔驰】

从“跑分神器”到数据平台,鲁大师开启演进之路
![C. colonne Swapping [tri + Simulation]](/img/0e/64d17980d3ec0051cdfb5fdb34e119.png)
C. colonne Swapping [tri + Simulation]

JVM命令之- jmap:导出内存映像文件&内存使用情况

Apple CMS V10 template /mxone Pro adaptive film and television website template
随机推荐
Opensergo is about to release v1alpha1, which will enrich the service governance capabilities of the full link heterogeneous architecture
原生小程序 之 input切換 text與password類型
Go语学习笔记 - gorm使用 - 原生sql、命名参数、Rows、ToSQL | Web框架Gin(九)
[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]
PowerPivot - DAX (function)
Senior programmers must know and master. This article explains in detail the principle of MySQL master-slave synchronization, and recommends collecting
Type de texte de commutation d'entrée et de mot de passe de l'applet natif
每秒10W次分词搜索,产品经理又提了一个需求!!!(收藏)
Ten stages of becoming a Senior IC Design Engineer. What stage are you in now?
PTA 天梯赛练习题集 L2-004 搜索树判断
How to improve website weight
I didn't know it until I graduated -- the principle of HowNet duplication check and examples of weight reduction
PTA ladder game exercise set l2-004 search tree judgment
Personal imitation SSM framework
谈fpga和asic的区别
ML之shap:基于adult人口普查收入二分类预测数据集(预测年收入是否超过50k)利用shap决策图结合LightGBM模型实现异常值检测案例之详细攻略
Red hat install kernel header file
Harmonyos practice - Introduction to development, analysis of atomized services
JVM监控及诊断工具-命令行篇
[云原生]微服务架构是什么?