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?
I am running Tomcat 6.0.31 on Ubuntu 10.10 and using tge Sun JDK (java-6-sun).
Share
You are probably running into Bug 7009828:
In Java 6 Update 23 and Java 6 Update 24, Java consider the
java.io.tmpdirproperty when deciding where to place some files that were needed forjps,jconsoleandjvisulavmto 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
tempfolder.So: either upgrade to Java 6 Update 25 or later (where the bug is fixed) or start
jpswith-J-Djava.io.tmpdir=/path-to-tomcat-installation/temp.