(Half of Linux-Tunables inserted)
|
(Second half of Linux Tunables inserted)
|
Line 194: | |||
** modify /etc/sysctl.conf: | ** modify /etc/sysctl.conf: | ||
*** vm.max_map_count=NUMBER | *** vm.max_map_count=NUMBER | ||
+ | == User processes == | ||
+ | Limits the number of threads. The limit is per user and configured per user. The name implies this is a process limit, but Linux counts threads a processes. | ||
+ | * Get current value | ||
+ | ** ulimit -u | ||
+ | * Set permanently (requires new login to take effect) | ||
+ | ** modify /etc/security/limits.conf: | ||
+ | *** username soft nproc NUMBER | ||
+ | *** username hard nproc NUMBER | ||
+ | == User open files == | ||
+ | Limits the number of open files and sockets. The limit is per process and configured per user. | ||
+ | * Get current value | ||
+ | ** ulimit -n | ||
+ | * Set permanently (requires new login to take effect) | ||
+ | ** modify /etc/security/limits.conf: | ||
+ | *** username soft nofile NUMBER | ||
+ | *** username hard nofile NUMBER |