JDK-6223888 : jvmstat tools fail to attach to target jvm when the target has issued a setuid call on Solaris
  • Type: Bug
  • Component: core-svc
  • Sub-Component: tools
  • Affected Version: 5.0
  • Priority: P4
  • Status: Closed
  • Resolution: Won't Fix
  • OS: solaris
  • CPU: generic
  • Submitted: 2005-02-01
  • Updated: 2023-12-14
  • Resolved: 2016-11-03
Related Reports
Relates :  
Relates :  
Description
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

Comments
This is not on our list of current priorities, if this changes please re-open this issue.
03-11-2016