2014-02-17 15:57:16 +00:00
|
|
|
# prctl
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
> Get or set the resource controls of running processes,.
|
|
|
|
> Tasks, and projects.
|
2021-03-31 12:09:14 +01:00
|
|
|
> More information: <https://www.unix.com/man-page/sunos/1/prctl>.
|
2014-02-17 15:57:16 +00:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Examine process limits and permissions:
|
2014-02-17 15:57:16 +00:00
|
|
|
|
|
|
|
`prctl {{PID}}`
|
|
|
|
|
2021-08-15 18:59:09 +01:00
|
|
|
- Examine process limits and permissions in machine parsable format:
|
2014-02-17 15:57:16 +00:00
|
|
|
|
|
|
|
`prctl -P {{PID}}`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Get specific limit for a running process:
|
2014-02-17 15:57:16 +00:00
|
|
|
|
2015-10-28 08:33:06 +00:00
|
|
|
`prctl -n process.max-file-descriptor {{PID}}`
|