当前位置:网站首页>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
边栏推荐
- 年中了,准备了少量的自动化面试题,欢迎来自测
- You have a chance, here is a stage
- 如何低成本构建一个APP
- NVIDIA control panel does not open what is NVIDIA control panel
- FreeRTOS MPU makes the system more robust!
- About Stacked Generalization
- leetcode:1856. Maximum value of minimum product of subarray
- 跳跃游戏II[贪心练习]
- C语言学生管理系统——可检查用户输入合法性,双向带头循环链表
- 【JUC系列】Executor框架之CompletionFuture
猜你喜欢

LuChen technology was invited to join NVIDIA startup acceleration program

Typora charges? Build vs Code markdown writing environment

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

数据库 存储过程 begin end

In the middle of the year, I have prepared a small number of automated interview questions. Welcome to the self-test

目标5000万日活,Pwnk欲打造下一代年轻人的“迪士尼乐园”

原神方石机关解密

Arduino raised $32million to enter the enterprise market

FreeRTOS MPU makes the system more robust!

Programmers use personalized Wallpapers
随机推荐
About Stacked Generalization
System design: partition or data partition
What is the OSI seven layer model? What is the role of each layer?
【愚公系列】2022年6月 ASP.NET Core下CellReport报表工具基本介绍和使用
开源与创新
leetcode:1856. 子数组最小乘积的最大值
潞晨科技获邀加入NVIDIA初创加速计划
RS485 serial port wiring description of smart lamp post smart gateway
Go excel export tool encapsulation
Spark参数调优实践
Intelligent Vision Group A4 paper recognition example
云上本地化运营,东非第一大电商平台Kilimall的出海经
Challenges brought by maker education to teacher development
go 断点续传
How do I check the IP address? What is an IP address
If you want to learn programming well, don't recite the code!
成为 TD Hero,做用技术改变世界的超级英雄 | 来自 TDengine 社区的邀请函
puzzle(019.1)Hook、Gear
Let's talk about BOM and DOM (5): dom of all large Rovers and the pits in BOM compatibility
Leetcode: Sword finger offer 26: judge whether T1 contains all topologies of T2