Use ProcessHandle API to get PIDs

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 9.0.0
    • Affects Version/s: None
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: