类 ProcessInfo
java.lang.Object
org.springframework.boot.info.ProcessInfo
Information about the process of the application.
- 从以下版本开始:
- 3.3.0
- 作者:
- Jonatan Ivanov
-
构造器详细资料
-
ProcessInfo
public ProcessInfo()
-
-
方法详细资料
-
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).- 返回:
- result of
Runtime.availableProcessors()
- 另请参阅:
-
getMemory
Memory information for the process. These values can provide details about the current memory usage and limits selected by the user or JVM ergonomics (init, max, committed, used for heap and non-heap). If limits not set explicitly, it might not be trivial to know what these values are runtime; especially in (containerized) environments where resource usage can be isolated (for example using control groups) or not necessarily trivial to discover. Other than that, these values can indicate if the JVM can resize the heap (stop-the-world).- 返回:
- heap and non-heap memory information
- 从以下版本开始:
- 3.4.0
- 另请参阅:
-
getPid
public long getPid() -
getParentPid
public long getParentPid() -
getOwner
-