PHP log error in virtualmin "Server reached pm.max_children setting (16)"

SYSTEM INFORMATION
OS type and version Debian Linux 11
Webmin version 2.021
Virtualmin version 7.7
Related packages SUGGESTED

Hello all,
Why do I keep getting php errors in my log file?

In my Server Configuration + PHP Option

Any advice I can get would be great.

Perhaps you should do nothing except change the PHP script run time from unlimited to a sensible default. If there is a PHP script that is running for hours and days - and thereby hogging resources - then limiting the run time for such is script is all you need to do to solve the problem.

Your web server stops serving pages when it reaches a certain threshold of traffic. It is failing in the most graceful way possible.

The worse alternatives to this sort of failure is that the web server slows down to an unacceptable level of performance or the entire server hangs. In the present case all these bad things have been prevented from occuring due to a limit on the number of child processes. It would not be a good idea for you to increase the number of child processes / sub processes just to get rid of the error, because by doing so you might cause the web server to fail in a more ungraceful manner.

In summary, if you are unable to allocate more CPU and RAM to the server then you will have to identify the virtual server which is hogging resources and do something about it.

1 Like

@calport
Thank you for your advice.

I got 6 cores and 16GB RAM on my server. Let me try to set a decent time for PHP script run time and see how it will help me.

I’ve been running these setting with good results, halved the ram usage, this is in the template.
This only effect each virtual server only untill you disable and enable FPM, so you can do a staged change.

1 Like

@stefan1959

Thanks, I have a look at those settings.

Hello,
in /etc/php/7.4/fpm/pool.d

There are two files one is www.conf and the other one is 16778132974398.conf

www.conf
This is what it looks like

16778132974398.conf
Screen Shot 2023-06-13 at 7.47.48 PM

Really confused with these two files I’m not sure what it does.

If your orginal question has been answered / issue resolved then mark the answer as such.

If you have a different question, please start a new topic.

Thanks.

Not really, I’m still getting the errors and that is the reason why i post these settings.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.