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

Use ProcessHandle API to get PIDs

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: