Class ProcessInfo

java.lang.Object
org.springframework.boot.info.ProcessInfo

public class ProcessInfo extends Object
Information about the process of the application.
Since:
3.3.0
Author:
Jonatan Ivanov
  • Constructor Details

    • ProcessInfo

      public ProcessInfo()
  • Method Details

    • getCpus

      public int getCpus()
      Number of processors available to the process. This value may change between invocations especially in (containerized) environments where resource usage can be isolated (for example using control groups).
      Returns:
      result of Runtime.availableProcessors()
      See Also:
    • getPid

      public long getPid()
    • getParentPid

      public long getParentPid()
    • getOwner

      public String getOwner()