Java – JPS does not display Tomcat processes

I run Tomcat 6.0 on Ubuntu 10.10 31, and use tge sun JDK (java-6-sun) Although Tomcat is running, when I run JPS (Java virtual machine process state tool), its process is not displayed The only output I see is the PID of the JPS process itself Why doesn't the Tomcat process appear?

Solution

You may run to bug 7009828:

In Java 6 update 23 and Java 6 update 24, when Java decides where to place some files required by JPS, jconsole and jvisualvm to detect locally running JVMs, it will consider using Java io. TMPDIR attribute This means that defining this system property as any JVM instance other than the default (/ tmp) will not be visible to these tools

In particular, this property is set to its installation temporary folder by default during Tomcat installation

So: either upgrade to Java 6 update 25 or later (fix errors) or use - j-djava io. TMPDIR = / path to Tomcat installation / temp start JPS

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>