jps没有显示Tomcat进程 [英] jps not showing Tomcat process

查看:573
本文介绍了jps没有显示Tomcat进程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Ubuntu 10.10上运行Tomcat 6.0.31并使用tge Sun JDK(java-6-sun)。虽然运行tomcat但是当我运行 jps (Java虚拟机进程状态工具)时,它的进程不会显示。我看到的唯一输出是jps进程本身的pid。为什么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?

推荐答案

您可能遇到Bug 7009828

在Java 6 Update 23和Java 6 Update 24中,Java考虑决定在哪里放置 jps ,<$ c $所需的文件时, java.io.tmpdir 属性c> jconsole 和 jvisulavm 检测本地运行的JVM。这意味着将具有此系统属性的每个JVM实例定义为默认值( / tmp )以外的其他内容对这些工具是不可见的。

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安装特别默认将此属性设置为其安装 temp 文件夹。

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

所以:要么升级到Java 6 Update 25或更高版本(修复了bug),要么 jps -J -Djava.io.tmpdir = / path-to-tomcat-installation / temp

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.

这篇关于jps没有显示Tomcat进程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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