Difference between revisions of "Linux"

From Leaky
Jump to: navigation, search
(Added process id limits)
(Features)
Line 9: Line 9:
 
* [[LVM]]
 
* [[LVM]]
 
* [[Nginx]]
 
* [[Nginx]]
 +
 +
== Common stuff ==
 +
 +
* Scripts to help with Nagios and server reboots - https://github.com/LaMi-/nagios_downtime
  
 
== CentOS - max pids ==
 
== CentOS - max pids ==

Revision as of 20:57, 31 December 2014

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.