Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.


I am using PROCESS CONTROL in PHP to create forks. my server's operating system is Ubuntu. How can i know what is the capacity of my server in handling those forks? is there a limit? and if so, can i change it??

Thanks a lot for your help

share|improve this question

1 Answer 1

Looking at the output of sysctl kernel.pid_max. The default should be 32768. The safest way of changing it is to edit /etc/sysctl.cfg to whatever value you want, and then run sysctl -p to make it active. This way it will survive reboots.

However, you're probably going to run into limits in CPU, RAM and Disk IO long before you hit the max number of processes. Without knowing what your app does, the best bet is to simply test and benchmark your app limiting it to differing amounts of forks.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.