找到运行实例的VMID [英] Find VMID for running instance

查看:203
本文介绍了找到运行实例的VMID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有以下命令:

  jstat.exe -gc< vmid> 1000 

如何找到 vmid 是吗?

解决方案

vmid 本质上是JVM进程的PID

您可以使用多种选项来查找JVM的PID使用通用的OS工具,例如


  • 作为 ps

  • 使用 jps 工具

  • 使用更复杂的 jps from SJK 工具(即它可以显示列出的JVM的系统属性)


I have a webapp running on tomcat and I want to look at garbage collection during runtime using jstat.

I have the command:

jstat.exe -gc <vmid> 1000

How can I find what the vmid is?

解决方案

vmid is essentially a PID of JVM process

You have multiple options to find PID of your JVM

  • use generic OS tools such as ps
  • use jps tools from JDK
  • use more elaborate version of jps from SJK tools (i.e. it can display system properties of listed JVMs)

这篇关于找到运行实例的VMID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆