当前位置:网站首页>JVM调试工具-jps
JVM调试工具-jps
2022-06-24 06:39:00 【Angryshark_128】
jps
Java Virtual Machine Process Status Tool
命令用法: jps [options] [hostid]
options:命令选项,用来对输出格式进行控制
hostid:指定特定主机,可以是ip地址和域名, 也可以指定具体协议,端口。
[protocol:][[//]hostname][:port][/servername]
功能描述: jps是用于查看有权访问的hotspot虚拟机的进程.
当未指定hostid时,默认查看本机jvm进程,否者查看指定的hostid机器上的jvm进程,此时hostid所指机器必须开启jstatd服务。 jps可以列出jvm进程lvmid,主类类名,main函数参数, jvm参数,jar名称等信息。
常用命令
查看进程号,不输出类名或方法
> jps -q
2966
23766
3306
7531
21499
22508
3567
输出传入的main方法
> jps -m
23766 jar
4697 Jps -m
7531 Bootstrap
21499 jar
22508 jar
输出main方法或jar全名
> jps -l
23766 dataqualityassessment-0.0.1-SNAPSHOT.jar
5000 sun.tools.jps.Jps
21499 file_monitor-1.0.8-SNAPSHOT.jar
22508 dataqualityassessment-0.0.1-SNAPSHOT.jar
输出传入的JVM参数
> jps -v
2966 QuorumPeerMain -Dzookeeper.log.dir=. -Dzookeeper.root.logger=INFO,CONSOLE -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.local.only=false
23766 jar -Xdebug -Xrunjdwp:transport=dt_socket,address=5006,server=y,suspend=n -Dspring.config.location=./application-test-77.properties
7531 Bootstrap
21499 jar
边栏推荐
- 学生管理系统页面跳转及数据库连接
- 【JUC系列】Executor框架之CompletionFuture
- . Net7 miniapi (special part):preview5 optimizes JWT verification (Part 1)
- Record -- about the method of adding report control to virtual studio2017 -- reportview control
- Laravel文档阅读笔记-Laravel Str slug() Function Example
- Centos7 deploying mysql-5.7
- Record -- about the problem of garbled code when JSP foreground passes parameters to the background
- [problem solving] virtual machine configuration static IP
- Deploy DNS server using dnsmasq
- 程序员使用个性壁纸
猜你喜欢
![[Yugong series] June 2022 asp Basic introduction and use of cellreport reporting tool under net core](/img/18/1576cb7bdae5740828d1db5b283aee.png)
[Yugong series] June 2022 asp Basic introduction and use of cellreport reporting tool under net core
![Jumping game ii[greedy practice]](/img/e4/f59bb1f5137495ea357462100e2b38.png)
Jumping game ii[greedy practice]

FreeRTOS MPU使系统更健壮!

Nine unique skills of Huawei cloud low latency Technology

About Stacked Generalization

35岁危机?内卷成程序员代名词了

File system notes

Typora收费?搭建VS Code MarkDown写作环境

35 year old crisis? It has become a synonym for programmers

【JUC系列】Executor框架之CompletionFuture
随机推荐
Challenges brought by maker education to teacher development
云监控系统 HertzBeat v1.1.0 发布,一条命令开启监控之旅!
File system notes
Programmers use personalized Wallpapers
About Stacked Generalization
Easy car Interviewer: talk about MySQL memory structure, index, cluster and underlying principle!
What is domain name resolution? What if the domain name cannot be resolved?
How to operate the little red book account: making good use of the theory of long tail words
Why does the remote end receive a check-out notice when the TRTC applet turns off audio and video locally
Code scanning | a sharp tool for controlling code quality
Leetcode: Sword finger offer 26: judge whether T1 contains all topologies of T2
On BOM and DOM (3): DOM node operation - element style modification and DOM content addition, deletion, modification and query
为什么要用lock 【readonly】object?为什么不要lock(this)?
[Yugong series] June 2022 asp Basic introduction and use of cellreport reporting tool under net core
记录--关于virtual studio2017添加报表控件的方法--Reportview控件
How to make a website? What should I pay attention to when making a website?
记录--关于JSP前台传参数到后台出现乱码的问题
The cloud monitoring system hertzbeat V1.1.0 is released, and a command starts the monitoring journey!
[binary tree] - middle order traversal of binary tree
缓存操作rockscache原理图