2015-12-30 22:27:57 +00:00
|
|
|
# ulimit
|
|
|
|
|
|
|
|
> Get and set user limits
|
|
|
|
|
|
|
|
- get the properties of all the user limits
|
|
|
|
|
|
|
|
`ulimit -a`
|
|
|
|
|
2016-01-02 10:43:05 +00:00
|
|
|
- get hard limit for the number of simultaneously opened files
|
2015-12-30 22:27:57 +00:00
|
|
|
|
|
|
|
`ulimit -H -n`
|
|
|
|
|
2016-01-02 10:43:05 +00:00
|
|
|
- get soft limit for the number of simultaneously opened files
|
2015-12-30 22:27:57 +00:00
|
|
|
|
2016-01-02 10:43:05 +00:00
|
|
|
`ulimit -S -n`
|
2015-12-30 22:27:57 +00:00
|
|
|
|
2016-01-02 10:43:05 +00:00
|
|
|
- set max per-user process limit
|
2015-12-30 22:27:57 +00:00
|
|
|
|
|
|
|
`ulimit -u 30`
|