Linux

From Leaky
Revision as of 20:57, 31 December 2014 by Leaky (talk | contribs) (Features)
Jump to: navigation, search

Distributions

Features

Common stuff

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.