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

jps does not work if username contains an underscore

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • 6
    • 5.0
    • hotspot
    • None
    • generic
    • generic

      A user whose username contains an _ cannot use tools such as jps. Existing code assumes that it can derive the username from a filename such as /tmp/hsperfdata_noddy by taking everything from the last _ onwards. So if your username is big_ears it will incorrectly reduce /tmp/hsperfdata_big_ears to "ears". The end result is that jps shows the pid but lists "process information unavailable" next to it. jconsole doesn't show the app at all.
      It's a dup of 6301562.

            sundar Sundararajan Athijegannathan
            emcmanus Eamonn McManus
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: