Goglides Dev 🌱

Balkrishna Pandey
Balkrishna Pandey

Posted on

How to check PID Limit?

Linux has a PID limit known as Process Identification Number or PID. This is a system-wide limit on the total number of processes that any user can start at any given time. It helps control resource usage and prevent malicious activity from overloading the system. The default PID limit for most Linux systems is 32768. This limit can be changed. However, setting the number too high is not recommended as it could cause system instability. Additionally, some applications may require a higher limit to function correctly.

To find the system's value, you can look up cat /proc/sys/kernel/pid_max

For those with 64-bit systems, you can increase the value to as high as 2^22 = 4,194,304 using:

echo "4194304" > /proc/sys/kernel/pid_max
Enter fullscreen mode Exit fullscreen mode

For more information check out this page.

Top comments (0)