| Modifier and Type | Field and Description |
|---|---|
protected long |
CapAmb
Ambient capability set (since Linux 4.3, see capabilities(7)).
|
protected long |
CapBnd
Capability Bounding set (since Linux 2.6.26, see capabilities(7)).
|
protected long |
CapEff
Masks of capabilities enabled in inheritable, permitted, and effective sets (see capabilities(7)).
|
protected long |
CapInh
Masks of capabilities enabled in inheritable, permitted, and effective sets (see capabilities(7)).
|
protected long |
CapPrm
Masks of capabilities enabled in inheritable, permitted, and effective sets (see capabilities(7)).
|
protected long |
Cpus_allowed
Mask of CPUs on which this process may run (since Linux 2.6.24, see cpuset(7)).
|
protected long |
Cpus_allowed_list
Mask of CPUs on which this process may run (since Linux 2.6.24, see cpuset(7)).
|
protected int |
effectiveGid |
protected int |
effectiveUid |
protected int |
fdSize |
protected int |
fsGid |
protected int |
fsUid |
protected int[] |
groups |
protected long |
hugetlbPages
Size of hugetlb memory portions.
|
protected long |
Mems_allowed
Mask of memory nodes allowed to this process (since Linux 2.6.24, see cpuset(7)).
|
protected long |
Mems_allowed_list
Mask of memory nodes allowed to this process (since Linux 2.6.24, see cpuset(7)).
|
protected String |
name |
protected int |
ngid |
protected long |
NoNewPrivs
Value of the no_new_privs bit (since Linux 4.10, see prctl(2)).
|
protected long |
nonvoluntary_ctxt_switches
Number of voluntary and involuntary context switches (since Linux 2.6.23).
|
protected int |
nspgid |
protected int |
nspid |
protected int |
nssid |
protected int |
nstgid |
protected int |
pid |
protected int |
ppid |
protected int |
realGid |
protected int |
realUid |
protected long |
rssAnon
Size of resident anonymous memory.
|
protected long |
rssFile
Size of resident file mappings.
|
protected long |
rssShmem
Size of resident shared memory
(includes System V shared memory, mappings from tmpfs(5), and shared anonymous
mappings).
|
protected int |
savedGid |
protected int |
savedUid |
protected long |
Seccomp
Seccomp mode of the process (since Linux 3.8, see seccomp(2)).
0 means SECCOMP_MODE_DISABLED;
1 means SECCOMP_MODE_STRICT;
2 means SECCOMP_MODE_FILTER.
|
protected long |
ShdPnd
Number of signals pending for thread and for process as a whole (see pthreads(7) and signal(7))
SigPnd: 0000000000000000
ShdPnd: 0000000000000000 |
protected long |
SigBlk
Masks indicating signals being blocked, ignored, and caught (see signal(7))
SigBlk: 0000000000010000
SigIgn: 0000000000384004 SigCgt: 000000004b813efb |
protected long |
SigCgt
Masks indicating signals being blocked, ignored, and caught (see signal(7))
|
protected long |
SigIgn
Masks indicating signals being blocked, ignored, and caught (see signal(7))
|
protected long |
SigPnd
Number of signals pending for thread and for process as a whole (see pthreads(7) and signal(7))
SigPnd: 0000000000000000
ShdPnd: 0000000000000000 |
protected long |
sigQ
This field contains two slash-separated numbers that
relate to queued signals for the real user ID of this
process.
|
protected Process.State |
state |
protected String |
stateRaw |
protected int |
tgid |
protected long |
threads
Number of threads in process containing this thread.
|
protected int |
tracerPid |
protected int |
unmask |
protected long |
vmData
Size of data segments.
|
protected long |
vmExe
Size of text segments.
|
protected long |
vmHWM
Peak resident set size ("high water mark")
|
protected long |
vmLck
Locked memory size (see mlock(3))
|
protected long |
vmLib
Shared library code size
|
protected long |
vmPeak
Peak virtual memory size
|
protected long |
vmPin
Pinned memory size (since Linux 3.2).
|
protected long |
vmPMD
Size of second-level page tables (since Linux 4.0)
|
protected long |
vmPTE
Page table entries size (since Linux 2.6.10)
|
protected long |
vmRSS
Resident set size.
|
protected long |
vmSize
Virtual memory size
|
protected long |
vmStk
Size of stack segments.
|
protected long |
vmSwap
Swapped-out virtual memory size by anonymous private pages;
shmem swap usage is not included (since Linux 2.6.34).
|
protected long |
voluntary_ctxt_switches
Number of voluntary and involuntary context switches (since Linux 2.6.23).
|
| Constructor and Description |
|---|
StatusImpl(File statusFile) |
StatusImpl(int pid) |
StatusImpl(Process proc) |
StatusImpl(String fileContent) |
| Modifier and Type | Method and Description |
|---|---|
int |
getEffectiveGid() |
int |
getEffectiveUid() |
int |
getFdSize()
Number of file descriptor slots currently allocated
|
int |
getFsGid() |
int |
getFsUid() |
int[] |
getGroups()
Supplementary group list
|
long |
getHugetlbPages()
Size of hugetlb memory portions.
|
String |
getName()
Command run by this process
|
int |
getNgid()
NUMA group ID (0 if none; since Linux 3.13).
|
long |
getNonvoluntaryCtxtSwitches()
Number of voluntary and involuntary context switches (since Linux 2.6.23).
|
int |
getNspgid()
Process group ID in each of the PID namespaces of
which [pid] is a member.
|
int |
getNspid()
Thread ID in each of the PID namespaces of which
[pid] is a member.
|
int |
getNssid()
descendant namespace session ID hierarchy Session ID
in each of the PID namespaces of which [pid] is a member.
|
int |
getNstgid()
Thread group ID (i.e., PID) in each of the PID
namespaces of which [pid] is a member.
|
int |
getPID()
Thread ID (see gettid(2))
|
int |
getPPID()
PID of parent process
|
int |
getRealGid() |
int |
getRealUid() |
long |
getRssAnon()
Size of resident anonymous memory.
|
long |
getRssFile()
Size of resident file mappings.
|
long |
getRssShmem()
Size of resident shared memory
(includes System V shared memory, mappings from tmpfs(5), and shared anonymous
mappings).
|
int |
getSavedGid() |
int |
getSavedUid() |
Process.State |
getState() |
String |
getStateRaw()
Current state of the process.
|
int |
getTgid()
Thread group ID (i.e., Process ID)
|
long |
getThreads()
Number of threads in process containing this thread.
|
int |
getTracerPid()
PID of process tracing this process (0 if not being traced)
|
int |
getUnmask()
Process umask
|
long |
getVmData()
Size of data segments.
|
long |
getVmExe()
Size of text segments.
|
long |
getVmHWM()
Peak resident set size ("high water mark")
|
long |
getVmLck()
Locked memory size (see mlock(3))
|
long |
getVmLib()
Shared library code size
|
long |
getVmPeak()
Peak virtual memory size
|
long |
getVmPin()
Pinned memory size (since Linux 3.2).
|
long |
getVmPMD()
Size of second-level page tables (since Linux 4.0)
|
long |
getVmPTE()
Page table entries size (since Linux 2.6.10)
|
long |
getVmRSS()
Resident set size.
|
long |
getVmSize()
Virtual memory size
|
long |
getVmStk()
Size of stack segments.
|
long |
getVmSwap()
Swapped-out virtual memory size by anonymous private pages;
shmem swap usage is not included (since Linux 2.6.34).
|
long |
getVoluntaryCtxtSwitches()
Number of voluntary and involuntary context switches (since Linux 2.6.23).
|
protected void |
parse(String fileContent) |
protected void |
parseKeyValue(String key,
String value) |
protected String name
protected Process.State state
protected String stateRaw
protected int unmask
protected int pid
protected int ppid
protected int tgid
protected int ngid
protected int tracerPid
protected int realUid
protected int realGid
protected int effectiveUid
protected int effectiveGid
protected int savedUid
protected int savedGid
protected int fsUid
protected int fsGid
protected int fdSize
protected int[] groups
protected int nstgid
protected int nspid
protected int nspgid
protected int nssid
protected long vmPeak
protected long vmSize
protected long vmLck
protected long vmPin
protected long vmHWM
protected long vmRSS
protected long rssAnon
protected long rssFile
protected long rssShmem
protected long vmData
protected long vmStk
protected long vmExe
protected long vmLib
protected long vmPTE
protected long vmPMD
protected long vmSwap
protected long hugetlbPages
protected long threads
protected long sigQ
protected long SigPnd
SigPnd: 0000000000000000
ShdPnd: 0000000000000000
protected long ShdPnd
SigPnd: 0000000000000000
ShdPnd: 0000000000000000
protected long SigBlk
SigBlk: 0000000000010000
SigIgn: 0000000000384004
SigCgt: 000000004b813efb
protected long SigIgn
protected long SigCgt
protected long CapInh
protected long CapPrm
protected long CapEff
protected long CapBnd
protected long CapAmb
protected long NoNewPrivs
protected long Seccomp
protected long Cpus_allowed
protected long Cpus_allowed_list
protected long Mems_allowed
protected long Mems_allowed_list
protected long voluntary_ctxt_switches
protected long nonvoluntary_ctxt_switches
public StatusImpl(int pid)
public StatusImpl(Process proc)
public StatusImpl(File statusFile)
public StatusImpl(String fileContent)
protected void parse(String fileContent)
public String getName()
public Process.State getState()
public String getStateRaw()
getStateRaw in interface Statuspublic int getPID()
public int getPPID()
public int getTgid()
public int getNgid()
public int getTracerPid()
getTracerPid in interface Statuspublic int getRealUid()
getRealUid in interface Statuspublic int getRealGid()
getRealGid in interface Statuspublic int getEffectiveUid()
getEffectiveUid in interface Statuspublic int getEffectiveGid()
getEffectiveGid in interface Statuspublic int getSavedUid()
getSavedUid in interface Statuspublic int getSavedGid()
getSavedGid in interface Statuspublic int getFdSize()
public int[] getGroups()
public int getNstgid()
The leftmost entry shows the value with respect to the PID namespace of the reading process, followed by the value in successively nested inner namespaces. (Since Linux 4.1.)
public int getNspid()
public int getNspgid()
public int getNssid()
public long getVmPeak()
public long getVmSize()
public long getVmLck()
public long getVmPin()
public long getVmHWM()
public long getVmRSS()
public long getRssAnon()
getRssAnon in interface Statuspublic long getRssFile()
getRssFile in interface Statuspublic long getRssShmem()
getRssShmem in interface Statuspublic long getVmData()
public long getVmStk()
public long getVmExe()
public long getVmLib()
public long getVmPTE()
public long getVmPMD()
public long getVmSwap()
public long getHugetlbPages()
getHugetlbPages in interface Statuspublic long getThreads()
getThreads in interface Statuspublic long getVoluntaryCtxtSwitches()
getVoluntaryCtxtSwitches in interface Statuspublic long getNonvoluntaryCtxtSwitches()
getNonvoluntaryCtxtSwitches in interface StatusCopyright © 2018. All rights reserved.