2022-01-17 13:40:17 +01:00
|
|
|
# prlimit
|
|
|
|
|
|
|
|
> Get or set process resource soft and hard limits.
|
|
|
|
> Given a process ID and one or more resources, prlimit tries to retrieve and/or modify the limits.
|
|
|
|
> More information: <https://manned.org/prlimit>.
|
|
|
|
|
|
|
|
- Display limit values for all current resources for the running parent process:
|
|
|
|
|
|
|
|
`prlimit`
|
|
|
|
|
|
|
|
- Display limit values for all current resources of a specified process:
|
|
|
|
|
2025-03-28 16:06:49 +02:00
|
|
|
`prlimit {{[-p|--pid]}} {{pid_number}}`
|
2022-01-17 13:40:17 +01:00
|
|
|
|
|
|
|
- Run a command with a custom number of open files limit:
|
|
|
|
|
2025-03-28 16:06:49 +02:00
|
|
|
`prlimit {{[-n|--nofile=]}}{{10}} {{command}}`
|