The jvmstat tools will fail to attach to a JVM that has changed
its effective user id on Solaris. The solaris implementation of
the function that maps a pid to a uid use the effective user id
of the target process. However, some applications, such as BEA's
application server, startup as root in order to bind to a privileged
socket, and then execute a setuid() call via JNI in order to change
to an unprivileged user id. As a result, the JVM code maps the
target pid to the effective user id instead of real user id and
attempt to access the hsperfdata file in the wrong directory.
In this scenario, the jps tool will successfully report the process
identifier of the target jvm, but will not be able to report the
class name or other target specific information. It will generally
report: '-- process information unavailable'.
###@###.### 2005-2-01 04:30:49 GMT
its effective user id on Solaris. The solaris implementation of
the function that maps a pid to a uid use the effective user id
of the target process. However, some applications, such as BEA's
application server, startup as root in order to bind to a privileged
socket, and then execute a setuid() call via JNI in order to change
to an unprivileged user id. As a result, the JVM code maps the
target pid to the effective user id instead of real user id and
attempt to access the hsperfdata file in the wrong directory.
In this scenario, the jps tool will successfully report the process
identifier of the target jvm, but will not be able to report the
class name or other target specific information. It will generally
report: '-- process information unavailable'.
###@###.### 2005-2-01 04:30:49 GMT
- relates to
-
JDK-6433591 JVM crashes unlinking /tmp/hsperfdata_root after effective user id changes
-
- Resolved
-
-
JDK-6301562 user name that contains '_' leads to problems in tools EG:jps and the jconsole
-
- Resolved
-