Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6223888

jvmstat tools fail to attach to target jvm when the target has issued a setuid call on Solaris

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • tbd
    • 5.0
    • core-svc
    • None
    • generic
    • solaris

      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

            Unassigned Unassigned
            briand Brian Doherty (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: