Bobcares

WeSupport

Call Us! 1-800-383-5193
Call Us! 1-800-383-5193
Call Us! 1-800-383-5193

Need Help?

Emergency Response Time custom

Our experts have had an average response time of 11.06 minutes in March 2021 to fix urgent issues.

We will keep your servers stable, secure and fast at all times for one fixed price.

Plesk error pool seems busy – How to resolve

by | Jun 7, 2021

Wondering how to resolve Plesk error pool seems busy? We can help you.

This error usually occurs if PHP-FPM pm.max_children reach the limit by the website.

As part of our Server Management Services, we assist our customers with several Plesk queries.

Today, let us see the steps followed by our Support Techs to resolve the error.

 

Plesk error pool seems busy

Some of the symptoms of the error are as follows.

1.Websites that have PHP handler set as FPM application served by Apache or FPM application served by nginx at Domains > example.com > PHP Settings experience one of the following issues:

  • load slowly
  • not accessible (permanently or periodically) with a 50x error in a web-browser:
502 Bad Gateway

503 Service Temporarily Unavailable

504 Gateway Time-out

2.The following message appears in the PHP-FPM error logfile /var/log/plesk-phpXX-fpm/error.log (where XX is a PHP version used by the websites):

WARNING: [pool example.com] server reached max_children setting (*), consider raising it

The message above is usually accompanied with this error:

unable to read what child say: Bad file descriptor (9)

3.If nginx is enable on the server, one of the following error messages may appear in domain’s error logfile /var/www/vhosts/system/example.com/logs/proxy_error_log:

[error] 11456#0: *118348 connect() to unix:///var/www/vhosts/system/example.com/php-fpm.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 203.0.113.2, server: example.com, request: “GET / HTTP/1.1”, upstream: “fastcgi://unix:///var/www/vhosts/system/example.com/php-fpm.sock:”, host: “example.com”

[error] 20058#0: *4725139 upstream prematurely closed connection while reading response header from upstream, client: 203.0.113.2, server: example.com, request: “POST /path/to/some/file HTTP/2.0”, upstream:

 

How to resolve Plesk error pool seems busy?

Let us see the steps followed by our Support Techs to resolve the error.

It can be resolved by Increasing the pm.max_children limit for the affected domains.

  • Firstly, connect to the Plesk server via SSH.
  • Then, find affected domains using the command below:

Please note the number on the left indicates how many times the pm.max_children limit has reached by the website.

# grep -r “server reached max_children setting” /var/log/*php*-fpm/error.log | cut -d’ ‘ -f5 | tr -d ‘]’ | sort | uniq -c | sort -nr
100 example.com
50 example.net
25 example.org
<…>
  • Next, log in to Plesk.
  • Next, go to Domains > example.com > PHP Settings > PHP-FPM Settings.
  • Finally, increase the pm.max_children value for the domain and apply the changes. Increase this value for all domains listed in step 2.
Other options to increase the pm.max_children limit:

1.Increasing pm.max_children for all domains under a service plan via Plesk

  • Log in to Plesk.
  • Go to Service Plans > plan_name > PHP Settings tab > PHP-FPM Settings section.
  • Increase the pm.max_children value and click Update & Sync.

2.Increasing pm.max_children for one domain via a command-line interface

  • Create a php.ini file in domain’s system directory /var/www/vhosts/system/example.com/conf/:
# touch /var/www/vhosts/system/example.com/conf/php.ini
  • Open the php.ini file in any text editor (for example, vi editor) and add the following records:
[php-fpm-pool-settings]
pm.max_children = 20
  • Save the changes and close the file.
  • Run the following command to apply the changes:
# /usr/local/psa/bin/php_settings -u

[Need help to fix Plesk error? We’d be happy to assist]

Conclusion

In short, today we saw troubleshooting steps and resolution provided by our Support Techs to resolve the error.

 

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

GET UP TO 25% OFF

Plesk Support

Spend time on your business, not on your servers.

Managing a server is time consuming. Whether you are an expert or a newbie, that is time you could use to focus on your product or service. Leave your server management & end-user tech support to us, and use that time to focus on the growth and success of your business.

TALK TO USOr click here to learn more.

GET UP TO 25% OFF

Plesk Support

Spend time on your business, not on your servers.

Managing a server is time consuming. Whether you are an expert or a newbie, that is time you could use to focus on your product or service. Leave your server management & end-user tech support to us, and use that time to focus on the growth and success of your business.

TALK TO USOr click here to learn more.

Categories:

Tags:

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF