1plimit(1)                        User Commands                       plimit(1)
2
3
4

NAME

6       plimit - get or set the resource limits of running processes
7

SYNOPSIS

9       plimit [-km] pid...
10
11
12       plimit {-cdfnstv} soft,hard... pid...
13
14

DESCRIPTION

16       If  one  or  more  of the cdfnstv options is specified, plimit sets the
17       soft (current) limit and/or the hard (maximum) limit of  the  indicated
18       resource(s)  in  the  processes identified by the process-ID list, pid.
19       Otherwise plimit reports the resource limits of the  processes  identi‐
20       fied by the process-ID list, pid.
21
22
23       Only  the  owner  of a process or the super-user is permitted either to
24       get or to set the resource limits of a process. Only the super-user can
25       increase the hard limit.
26

OPTIONS

28       The following options are supported:
29
30       -k    On  output, show file sizes in kilobytes (1024 bytes) rather than
31             in 512-byte blocks.
32
33
34       -m    On output, show file and memory  sizes  in  megabytes  (1024*1024
35             bytes).
36
37
38
39       The remainder of the options are used to change specified resource lim‐
40       its. They each accept an argument of the form:
41
42
43       soft,hard
44
45
46       where soft specifies the soft (current) limit and  hard  specifies  the
47       hard (maximum) limit. If the hard limit is not specified, the comma may
48       be omitted. If the soft limit is an empty string, only the  hard  limit
49       is set. Each limit is either the literal string unlimited, or a number,
50       with an optional scaling factor, as follows:
51
52       nk       n kilobytes
53
54
55       nm       n megabytes (minutes for CPU time)
56
57
58       nh       n hours (for CPU time only)
59
60
61       mm:ss    minutes and seconds (for CPU time only)
62
63
64
65       The soft limit cannot exceed the hard limit.
66
67       -c soft,hard    Set core file size limits  (default  unit  is  512-byte
68                       blocks).
69
70
71       -d soft,hard    Set  data  segment  (heap) size limits (default unit is
72                       kilobytes).
73
74
75       -f soft,hard    Set file size limits (default unit is 512-byte blocks).
76
77
78       -n soft,hard    Set file descriptor limits (no default unit).
79
80
81       -s soft,hard    Set stack segment size limits (default  unit  is  kilo‐
82                       bytes).
83
84
85       -t soft,hard    Set CPU time limits (default unit is seconds).
86
87
88       -v soft,hard    Set  virtual  memory size limits (default unit is kilo‐
89                       bytes).
90
91

OPERANDS

93       The following operands are supported.
94
95       pid    Process ID list.
96
97

EXIT STATUS

99       plimit returns the exit value zero  on  success,  non-zero  on  failure
100       (such as no such process, permission denied, or invalid option).
101

FILES

103       /proc/pid/*    process information and control files
104
105

ATTRIBUTES

107       See attributes(5) for descriptions of the following attributes:
108
109
110
111
112       ┌─────────────────────────────┬─────────────────────────────┐
113ATTRIBUTE TYPE         ATTRIBUTE VALUE        
114       ├─────────────────────────────┼─────────────────────────────┤
115       │Availability                 │SUNWesu                      │
116       └─────────────────────────────┴─────────────────────────────┘
117

SEE ALSO

119       ulimit(1), proc(1), getrlimit(2), setrlimit(2), proc(4), attributes(5),
120
121
122
123SunOS 5.11                        8 Jun 1998                         plimit(1)
Impressum