OSProcessImpl
OSProcessImpl
The implementation of the OSProcess
interface. This class provides details about a specific process in the operating system, including its name, ID, state, resource usage, and various performance metrics.
Author
N7ghtm4r3
Parameters
The name of the process (e.g., "java", "nginx").
The path to the executable of the process.
The full command line that was used to start the process.
The arguments passed to the process when it was started.
A map of environment variables used by the process.
The current working directory of the process.
The user running the process.
The ID of the user running the process.
The group associated with the process.
The ID of the group associated with the process.
The state of the process (e.g., running, sleeping).
The unique identifier for the process.
The process ID of the parent process.
The number of threads in the process.
The priority of the process.
The virtual memory size of the process, in bytes.
The resident set size of the process, in bytes (physical memory used).
The amount of time the process has spent in kernel mode, in milliseconds.
The amount of time the process has spent in user mode, in milliseconds.
The time when the process started, in milliseconds since the Unix epoch.
The number of bytes read by the process.
The number of bytes written by the process.
The number of open files used by the process.
The soft limit on the number of files the process can open.
The hard limit on the number of files the process can open.
The cumulative CPU load of the process as a percentage.
The CPU load of the process between two ticks, as a percentage.
The bitness of the process (e.g., 32-bit, 64-bit).
The CPU affinity mask for the process.
A flag indicating whether the process attributes should be updated.
The list of threads associated with the process.
The number of minor page faults for the process.
The number of major page faults for the process.
The number of context switches for the process.