PLIMIT(1) | User Commands | PLIMIT(1) |
plimit - get or set the resource limits of running processes
plimit [-km] pid...
plimit {-cdfnstv} soft,hard... pid...
If one or more of the cdfnstv options is specified, plimit sets the soft (current) limit and/or the hard (maximum) limit of the indicated resource(s) in the processes identified by the process-ID list, pid. Otherwise plimit reports the resource limits of the processes identified by the process-ID list, pid.
Only the owner of a process or the super-user is permitted either to get or to set the resource limits of a process. Only the super-user can increase the hard limit.
The following options are supported:
-k
-m
The remainder of the options are used to change specified resource limits. They each accept an argument of the form:
soft,hard
where soft specifies the soft (current) limit and hard specifies the hard (maximum) limit. If the hard limit is not specified, the comma may be omitted. If the soft limit is an empty string, only the hard limit is set. Each limit is either the literal string unlimited, or a number, with an optional scaling factor, as follows:
nk
nm
nh
mm:ss
The soft limit cannot exceed the hard limit.
-c soft,hard
-d soft,hard
-f soft,hard
-n soft,hard
-s soft,hard
-t soft,hard
-v soft,hard
The following operands are supported.
pid
plimit returns the exit value zero on success, non-zero on failure (such as no such process, permission denied, or invalid option).
/proc/pid/*
ulimit(1), proc(1), getrlimit(2), setrlimit(2), proc(5), attributes(7),
June 8, 1998 | OmniOS |