当前位置:网站首页>JVM-jinfo的使用
JVM-jinfo的使用
2022-07-22 10:08:00 【逍遥壮士】
jinfo是什么,可以干什么?
jinfo全称Configuration Info for Java作用是实时查看和调整虚拟机各项参数。
使用jps命令的-v参数可以查看虚拟机启动时显式指定的参数列表。
注意先 jps -l 查出进程id
相关命令查询
查看所有参数
jinfo 20220
查询CMS的配置
jinfo -flag CMSInitiatingOccupancyFraction 20220
查看jvm的参数
jinfo -flags 20220
查看java系统参数
jinfo -sysprops 20220
查看是否打开GC及详情
jinfo -flag PrintGC 20220
jinfo -flag PrintGCDetails 20220
打开gc打印
jinfo -flag +PrintGC 20220
再次查看
最后
jinfo在排查jvm问题和日常查看jvm配置的时候常用,所以用好该命令可以有助日后对jvm排查的掌握。并且jinfo可以动态的来配置jvm的参数,这样极大方便虚拟机的实时调试,不需要再重新启动的时候配置,并且也可以快速进行验证,非常方便实用。
往期推荐
jvm参数PretenureSizeThreshold让对象直接进入老年代!
实战-配置+OmitStackTraceInFastThrow 导致不打印日志具体信息
边栏推荐
- spinning
- Synchronized与lock锁区别
- Compared with technology and products, listening and opinions are the top priority of Web3 at present
- 干货分享-作为Lead 接手一个新的数据团队一 问题盘点 与Insights的发现
- promise
- The luckiest geek in China: in his early twenties, he was worth more than 100 million, and retired after three startups
- Definition of derived classes
- Implementation of bytecode technology in dynamic proxy
- 直接修改/etc/crontab 文件内容,定时任务不生效
- ES6新特性分享(三)
猜你喜欢
分享一下Typora工具
Datablau5.0数据资产管理产品系列重磅发布
记一次GCEasy的垃圾收集分析
CV520国产替代CI520非接触式读写器读卡芯片
zabbix实现钉钉监控告警
[take you to learn C, take you to fly] branch structure in Chapter 3 of C language programming (3rd Edition) of Zhejiang University Edition (exercise 3)
记一次优化我的个人博客
派生类的构造函数和析构函数
[learn C and fly] Chapter 3 branch structure (exercise 3.1 simple guessing game)
Dp4361 domestic six channel stereo d/a audio converter chip replaces cs4361
随机推荐
友元函数和友元类
Sentry nodestore_node 表中的数据查看
消息的可靠性与重复性
mariadb审计插件
-Bash: ifconfig: command not found
oracle怎样转义单引号
Pytest interface automated testing framework | plug-in secondary development practice
Oracle uses an SQL to find out which data is not in a table
MariaDB audit plug-in
warning: [mariadbmon] The current master server ‘srv-cls01-02‘ is no longer valid because it is in r
mysql数据库
The strongest screen tool sharex v14.0.1
Si14t touch key chip is compatible with tms12
MySQL 实现累积求和的几种方法
Last change time of MySQL view table structure
干货分享-作为Lead 接手一个新的数据团队一 问题盘点 与Insights的发现
Compared with technology and products, listening and opinions are the top priority of Web3 at present
Operator overloading
Niobuffer (buffer)
How does ZABBIX create a template that only monitors the status of a port