openjdk team mailing list archive
-
openjdk team
-
Mailing list archive
-
Message #10811
[Bug 1417962] Re: 6b34 regression: jps as root does not show classname anymore but instead 'process information unavailable' for processes running as non-root user
Hi,
Not sure where I should post this, but I've just hit this bug with Java
8
java version "1.8.0_31"
Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode)
# update-alternatives --config java
There is 1 choice for the alternative java (providing /usr/bin/java).
Selection Path Priority Status
------------------------------------------------------------
0 /usr/lib/jvm/java-8-oracle/jre/bin/java 20012 auto mode
* 1 /usr/lib/jvm/java-8-oracle/jre/bin/java 20012 manual mode
# uname -a
Linux java-test-1 3.13.0-45-generic #74-Ubuntu SMP Tue Jan 13 19:36:28 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
I had to do the workaround (by creating the symlink) in order for
VisualVM to see the data coming from the running JVM.
I would be happy to move/report this issue if someone could suggest a
more appropriate area to post in.
Thank you.
-=david=-
--
You received this bug notification because you are a member of OpenJDK,
which is subscribed to openjdk-7 in Ubuntu.
https://bugs.launchpad.net/bugs/1417962
Title:
6b34 regression: jps as root does not show classname anymore but
instead 'process information unavailable' for processes running as
non-root user
Status in openjdk-6 package in Ubuntu:
Confirmed
Status in openjdk-7 package in Ubuntu:
Confirmed
Bug description:
I noticed the following behavior change in the jps command line tool when updating from
6b33-1.13.5-1ubuntu0.12.04 -> 6b34-1.13.6-1ubuntu0.12.04.1 on a ubuntu 12.04 64bit system.
Staring point is a java process for apache tomcat running as non-root
user (username openbravo in below example) with pid 1462.
In 6b33 when running jps -l as root it did correctly identify the classname of the running processes as shown here:
luna686:~# jps -l
1462 org.apache.catalina.startup.Bootstrap
11610 sun.tools.jps.Jps
However after updating the same jps call as root-user does now show:
luna686:~# jps -l
12056 sun.tools.jps.Jps
1462 -- process information unavailable
Which break some custom monitoring of us trying to find tomcat process
via its classname.
Note: Problem only occours when running jps as root user and process
in question is running non-root. When running jps as same user as the
tomcat process is running with then both 6b33 + 6b34 work as expected
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/1417962/+subscriptions
References