jps没显示的java进程名称,jps没有显示Tomcat进程

I am running Tomcat 6.0.31 on Ubuntu 10.10 and using tge Sun JDK (java-6-sun). Although tomcat is running its process does not show up when I run jps (Java Virtual Machine Process Status Tool). The only output I see is the pid for the jps process itself. Why would the Tomcat process not show up?

解决方案

You are probably running into Bug 7009828:

In Java 6 Update 23 and Java 6 Update 24, Java consider the java.io.tmpdir property when deciding where to place some files that were needed for jps, jconsole and jvisulavm to detect locally running JVMs. This means that every JVM instance that had this system property defined to something other than the default (/tmp) would be invisible to these tools.

Tomcat installations in particular default to setting this property to their installations temp folder.

So: either upgrade to Java 6 Update 25 or later (where the bug is fixed) or start jps with -J-Djava.io.tmpdir=/path-to-tomcat-installation/temp.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值