Uploaded image for project: 'WildFly Common'
  1. WildFly Common
  2. WFCOM-14

Add utilities to get process name and node name, and PID

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 1.2.0.Beta10
    • None
    • None

      The process name is a string field which contains the name of the process. The default value for this field could be extracted from the first part of the sun.java.command system property. It would be configurable via system property, e.g. jboss.process.name.

      The process ID field is a long field that contains the ID of the process. The value of this field should be set from ProcessHandle.current().pid() on Java 9. On Java 8 and earlier, you can use ManagementFactory.getRuntimeMXBean().getName() and parse the numeric data up to the @ symbol. If the data does not parse, or the field is not present on deserialize, -1L should be used to indicate an unknown PID.

      The node name logic should be based on our existing jboss.node.name property handling.

            dlloyd@redhat.com David Lloyd
            dlloyd@redhat.com David Lloyd
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: