max_children issue

Get help with installation and running phpBB 3.3.x here. Please do not post bug reports, feature requests, or extension related questions here.
Post Reply
skybound
Registered User
Posts: 200
Joined: Wed Nov 12, 2003 7:11 am
Location: Port Elizabeth - South Africa
Contact:

max_children issue

Post by skybound »

Been having performance issues in the last few weeks and after contacting our hosting co, they came back with the following:
After reviewing the error logs for your domain, we have confirmed that your website has encountered multiple occurrences of max_children errors. Here is an excerpt from the logs for your reference:


[31-May-2023 12:00:48] WARNING: [pool hetz-avcoma-php81] server reached max_children setting (20), consider raising it
[31-May-2023 12:06:15] WARNING: [pool hetz-avcoma-php81] server reached max_children setting (20), consider raising it
[31-May-2023 12:36:48] WARNING: [pool hetz-avcoma-php81] server reached max_children setting (20), consider raising it
[31-May-2023 12:41:52] WARNING: [pool hetz-avcoma-php81] server reached max_children setting (20), consider raising it
[31-May-2023 12:57:31] WARNING: [pool hetz-avcoma-php81] server reached max_children setting (20), consider raising it


This situation indicates that the PHP processes on your website are taking too long to close, causing all available slots to be utilized. Once the maximum number of slots is reached, the website becomes unable to load or open any additional PHP connections or website queries until one of the existing PHP connections is closed. Consequently, MySQL connections are also affected, as no further connections can be established. This explains why you are encountering this error on your website.

We recommend contacting your web developer and providing them with the above information. They should ensure that your website is optimized to prevent long-running database queries from exhausting the available connection slots in the future. Additionally, they should ensure that queries are terminated promptly after completion. Taking these measures will help resolve the issue at hand.
On version 3.3.10. All extension are on latest version.

Where do I start to troubleshoot this?
User avatar
AmigoJack
Registered User
Posts: 6113
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン
Contact:

Re: max_children issue

Post by AmigoJack »

skybound wrote: Sun Jun 04, 2023 4:25 pm
consider raising it
Just do that. Given how big your RAM is and how much CPU cores you have it might be a bigger number, see https://serverfault.com/questions/93943 ... ren-tuning - otherwise just experiment by increasing it to 25.
skybound wrote: Sun Jun 04, 2023 4:25 pm
They should ensure that your website is optimized to prevent long-running database queries from exhausting the available connection slots in the future.
phpBB doesn't ensure this. Keep an eye on database statistics, such as slow queries. Adding indexes might help increasing performance, but comes at the cost of maintenance and addition storage space needed.
skybound wrote: Sun Jun 04, 2023 4:25 pm
they should ensure that queries are terminated promptly after completion. Taking these measures will help resolve the issue at hand.
phpBB ensures this already. However, your first action should be to disable all extensions and then one by one enable them again, checking inbetween if you can identify the one which might be programmed too sloppy.
  • "The problem is probably not my English but you do not want to understand correctly. ... We will not come anybody anyway, nevertheless, it's best to shit this." Affin, 2018-11-20
  • "But this shit is not here for you. You can follow with your. Maybe the question, instead, was for you, who know, so you shoved us how you are." axe70, 2020-10-10
  • "My reaction is not to everyone, especially to you." Raptiye, 2021-02-28
skybound
Registered User
Posts: 200
Joined: Wed Nov 12, 2003 7:11 am
Location: Port Elizabeth - South Africa
Contact:

Re: max_children issue

Post by skybound »

Thanks AmigoJack.

How many seconds would be regarded as a slow query? Current setting is 10 and the log is empty.
User avatar
AmigoJack
Registered User
Posts: 6113
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン
Contact:

Re: max_children issue

Post by AmigoJack »

You have to define that for yourself: is waiting 10 seconds for a requested page too long? It also depends on the tasks themselves: if something needs 45 seconds but is only needed once a month then it's okay to be slow.
  • "The problem is probably not my English but you do not want to understand correctly. ... We will not come anybody anyway, nevertheless, it's best to shit this." Affin, 2018-11-20
  • "But this shit is not here for you. You can follow with your. Maybe the question, instead, was for you, who know, so you shoved us how you are." axe70, 2020-10-10
  • "My reaction is not to everyone, especially to you." Raptiye, 2021-02-28
Post Reply

Return to “[3.3.x] Support Forum”