Uploaded image for project: 'Java Mission Control'
  1. Java Mission Control
  2. JMC-8127

Use ProcessHandle API to get PIDs

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 9.0.0
    • None
    • Mission Control Core
    • None
    • JMC 9 Sprint 2

      Now that we no longer support running JMC on JDK 8, we can stop using the trick of parsing the PID our of ManagementFactory.getRuntimeMXBean().getName() and instead start using ProcessHandle.current().pid() that was introduced in Java 9.

            hirt Marcus Hirt
            hirt Marcus Hirt
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: