当前位置:网站首页>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
边栏推荐
- Five minute run through 3D map demo
- . Net7 miniapi (special part):preview5 optimizes JWT verification (Part 1)
- Jumping game ii[greedy practice]
- With a goal of 50million days' living, pwnk wants to build a "Disneyland" for the next generation of young people
- Arduino raised $32million to enter the enterprise market
- How to build an app at low cost
- Project demo
- Game website making tutorial and correct view of games
- On BOM and DOM (6): bit value calculation of DOM objects and event objects, such as offsetx/top and clearx
- About Stacked Generalization
猜你喜欢
![[binary number learning] - Introduction to trees](/img/7d/c01bb58bc7ec9c88f857d21ed07a2d.png)
[binary number learning] - Introduction to trees

Maui uses Masa blazor component library

机器人迷雾之算力与智能

leetcode:84. The largest rectangle in the histogram

Computing power and intelligence of robot fog

缓存操作rockscache原理图
![Command ‘[‘where‘, ‘cl‘]‘ returned non-zero exit status 1.](/img/2c/d04f5dfbacb62de9cf673359791aa9.png)
Command ‘[‘where‘, ‘cl‘]‘ returned non-zero exit status 1.

Virtual file system
![Jumping game ii[greedy practice]](/img/e4/f59bb1f5137495ea357462100e2b38.png)
Jumping game ii[greedy practice]

成为 TD Hero,做用技术改变世界的超级英雄 | 来自 TDengine 社区的邀请函
随机推荐
. Net7 miniapi (special part):preview5 optimizes JWT verification (Part 1)
Code scanning | a sharp tool for controlling code quality
[JUC series] completionfuture of executor framework
How to operate the little red book account: making good use of the theory of long tail words
On BOM and DOM (3): DOM node operation - element style modification and DOM content addition, deletion, modification and query
Virtual file system
Working principle of online video server selection method for online video platform
Spark累加器和广播变量
GPU frequency of zhanrui chip
数据同步工具 DataX 已经正式支持读写 TDengine
typescript vscode /bin/sh: ts-node: command not found
What are the audio formats? Can the audio format be converted
展锐芯片之GPU频率
Counter attack of flour dregs: MySQL 66 questions, 20000 words + 50 pictures
Rockscache schematic diagram of cache operation
How to build an app at low cost
RS485 serial port wiring description of smart lamp post smart gateway
About Stacked Generalization
C language student management system - can check the legitimacy of user input, two-way leading circular linked list
C语言学生管理系统——可检查用户输入合法性,双向带头循环链表