Difference between revisions of "Linux"
From Leaky
(Added process id limits) |
|||
Line 9: | Line 9: | ||
* [[LVM]] | * [[LVM]] | ||
* [[Nginx]] | * [[Nginx]] | ||
+ | |||
+ | == CentOS - max pids == | ||
+ | |||
+ | To view the current maximum number | ||
+ | |||
+ | $ cat /proc/sys/kernel/pid_max | ||
+ | 32768 | ||
+ | |||
+ | To increase the maximum number of processes, you can use sysctl for a temporary or permanent change. | ||
+ | |||
+ | Temporarily update it (until next reboot): | ||
+ | |||
+ | # sysctl -w kernel.pid_max=1048576 | ||
+ | |||
+ | or a permanent change: | ||
+ | |||
+ | # echo "kernel.pid_max = 1048576" >> /etc/sysctl.conf | ||
+ | # sysctl -p | ||
+ | |||
+ | cPanel sets it to 1048576 by default. |
Revision as of 14:35, 3 December 2014
Distributions
Features
CentOS - max pids
To view the current maximum number
$ cat /proc/sys/kernel/pid_max 32768
To increase the maximum number of processes, you can use sysctl for a temporary or permanent change.
Temporarily update it (until next reboot):
# sysctl -w kernel.pid_max=1048576
or a permanent change:
# echo "kernel.pid_max = 1048576" >> /etc/sysctl.conf # sysctl -p
cPanel sets it to 1048576 by default.