当前位置:网站首页>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
边栏推荐
- PTA TIANTI game exercise set l2-003 moon cake test point 2, test point 3 Analysis
- CTFshow--常用姿势
- Question 102: sequence traversal of binary tree
- Randomly generate session_ id
- Convert numbers to string strings (to_string()) convert strings to int sharp tools stoi();
- On the difference between FPGA and ASIC
- [InstallShield] Introduction
- mac版php装xdebug环境(m1版)
- 数据中心为什么需要一套基础设施可视化管理系统
- 10W word segmentation searches per second, the product manager raised another demand!!! (Collection)
猜你喜欢
The boss always asks me about my progress. Don't you trust me? (what do you think)
OpenSergo 即将发布 v1alpha1,丰富全链路异构架构的服务治理能力
Interview skills of software testing
【日常训练--腾讯精选50】235. 二叉搜索树的最近公共祖先
Jstat of JVM command: View JVM statistics
外设驱动库开发笔记43:GPIO模拟SPI驱动
On the discrimination of "fake death" state of STC single chip microcomputer
POI excel export, one of my template methods
The solution of a simple algebraic problem
软件测试知识储备:关于「登录安全」的基础知识,你了解多少?
随机推荐
From "running distractor" to data platform, Master Lu started the road of evolution
CTFshow--常用姿势
【日常训练--腾讯精选50】292. Nim 游戏
[FPGA tutorial case 14] design and implementation of FIR filter based on vivado core
JVM命令之- jmap:导出内存映像文件&内存使用情况
PTA 天梯赛练习题集 L2-003 月饼 测试点2,测试点3分析
make makefile cmake qmake都是什么,有什么区别?
Web authentication API compatible version information
ML之shap:基于adult人口普查收入二分类预测数据集(预测年收入是否超过50k)利用shap决策图结合LightGBM模型实现异常值检测案例之详细攻略
Solve pod install error: FFI is an incompatible architecture
Personal imitation SSM framework
Go language learning notes - Gorm use - native SQL, named parameters, rows, tosql | web framework gin (IX)
Bypass open_ basedir
PTA 天梯赛练习题集 L2-004 搜索树判断
Say sqlyog deceived me!
Add salt and pepper noise or Gaussian noise to the picture
Flinksql read / write PgSQL
[云原生]微服务架构是什么?
Bat instruction processing details
Detailed explanation of platform device driver architecture in driver development