Reputation: 1069
we've seen that some time, under no heavy traffic, the php-fpm processes under nginx start to increase drastically. We have 35 processes and them all of a sudden, you see CPU at 100% with 160 processes running at the same time. Last time it happened was a few seconds ago, the second last one was 2 weeks ago, pretty weird. We do not see memory problems or anything strange (too many accesses or so on).
Do you have any idea how we can avoid creating those processes? Or what could be the cause?
Upvotes: 0
Views: 3318
Reputation: 42789
well fpm probably creates them to handle the traffic, and if the process has 100% then that might be some part of ur code eating up the processor.
If you want to force fpm not to create more than a certain number then check the file under /etc/php5/fpm/pool.d/www.conf
, there you'll find max children and stuff like that
Upvotes: 1