• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

503 due to maintenance downtime or capacity problems

PaulZ

New Pleskian
I just installed plesk 12.5.30 to a new server and we moved our system to this server.

On my server i run cronjobs which requires a lot of insertation into the database. When ever this cronjob is running the website freeze or i am getting a

Service Temporarily Unavailable

The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

Untill the cronjob is done. On my other server this cronjob runned without a problem so i am sure it must be a setting on my server probable caused by plesk.

Hoping anyone here can help me with this!
 
In my error log i see the following

/var/log/plesk-php56-fpm/error.log
server reached max_children setting (5), consider raising it

then again if i look here:

/etc/php-fpm.d/www.conf.saved_by_psa
pm.max_children = 50

anyone?
 
Hi Paul
If you go to...

Plesk > Subscriptions > domain.tld > PHP Settings > Scroll to down to Additional directives

There you can add custom php-fpm settings for the domain, like so...
Code:
[php-fpm-pool-settings]
pm = dynamic
pm.start_servers = 3
pm.min_spare_servers = 3
pm.max_spare_servers = 8
pm.max_children = 35

That is just an example.
I hope that helps
Regards

Lloyd
 
By the way, if you are running Plesk PHP versions, you can find the default php-fpm.conf files here...

/opt/plesk/php/<version>/etc/php-fpm.d/domain.tld.conf

The path /etc/php-fpm.d/ is for the OS Provided version.

But you should add any customization as I described above.
Anyway I hope that helps.
Regards

Lloyd
 
Hi Paul,
please be aware that the file you have edited may be overwritten..
Code:
; ATTENTION!
;
; DO NOT MODIFY THIS FILE BECAUSE IT WAS GENERATED AUTOMATICALLY,
; SO ALL YOUR CHANGES WILL BE LOST THE NEXT TIME THE FILE IS GENERATED.

; If you need to customize this file, use either custom PHP settings tab in
; Panel or override settings in /var/www/vhosts/system/domain.tld/conf/php.ini.
; To override pool configuration options, specify them in [php-fpm-pool-settings]
; section of /var/www/vhosts/system/domain.tld/conf/php.ini file.


So I would suggest adding them in Plesk too.
Regards

Lloyd
 
Txs for pointing this out, normally i am developer so this is not my area of expertise.

Maybe a stupid question:

[php-fpm-pool-settings]
pm = dynamic
pm.start_servers = 3
pm.min_spare_servers = 3
pm.max_spare_servers = 8
pm.max_children = 35

Does this need a closing tag?

Something like

[php-fpm-pool-settings]
pm = dynamic
pm.start_servers = 3
pm.min_spare_servers = 3
pm.max_spare_servers = 8
pm.max_children = 35
[/php-fpm-pool-settings]

or just

[php-fpm-pool-settings]
pm = dynamic
pm.start_servers = 3
pm.min_spare_servers = 3
pm.max_spare_servers = 8
pm.max_children = 35
 
No problem, happy to help.
No you don't need a closing tag, just like...

Code:
[php-fpm-pool-settings]
pm = dynamic
pm.start_servers = 3
pm.min_spare_servers = 3
pm.max_spare_servers = 8
pm.max_children = 35

Is fine.
Kind regards

Lloyd
 
Back
Top