Skip to content
  • Solutions
    By Role
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    By Infrastructure
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
  • Product
    • Plesk Features
    • Plesk Editions
    • What’s new
    • Pricing
    • Roadmap
    • Lifecycle Policy
    • Extensions Catalogue
  • Pricing
  • Extensions
    Featured Extensions
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    Bundles and packs:
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack

    See all Extensions

  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
Plesk 360 login
Free Trial

Knowledge Base

Plesk hosted site uses more RAM than expected: too many PHP-FPM child processes

 
apachedomainsgohostedphp

Symptoms

  • The server is slow and websites take too long to load or they do not load at all, while generating 504 errors at the same time
  • The Apache error log indicates that the Apache web server is having difficulties with the termination of some processes:

    [Fri Nov 17 16:11:45.225766 2023] [core:warn] [pid 27150:tid 139707243858880] AH00045: child process 29995 still did not exit, sending a SIGTERM
    [Fri Nov 17 16:11:45.225929 2023] [core:warn] [pid 27150:tid 139707243858880] AH00045: child process 31367 still did not exit, sending a SIGTERM
    [Fri Nov 17 16:11:45.226032 2023] [core:warn] [pid 27150:tid 139707243858880] AH00045: child process 959 still did not exit, sending a SIGTERM
    ...
    [Fri Nov 17 16:11:47.250484 2023] [core:error] [pid 27150:tid 139707243858880] AH00046: child process 29995 still did not exit, sending a SIGKILL
    [Fri Nov 17 16:11:47.250957 2023] [core:error] [pid 27150:tid 139707243858880] AH00046: child process 31367 still did not exit, sending a SIGKILL
    [Fri Nov 17 16:11:47.251313 2023] [core:error] [pid 27150:tid 139707243858880] AH00046: child process 959 still did not exit, sending a SIGKILL

  • The command below shows high RAM usage:

    # free -h

  • The command below shows more PHP-FPM child processes than allowed under pm.max_children in Domains > example.com > PHP Settings:

    # ps faux | grep fpm
    ...
    root 2482 0.0 0.2 583108 20784 ? Ss Jan16 0:55 php-fpm: master process (/opt/plesk/php/7.4/etc/php-fpm.conf)
    exampl+ 17707 4.0 0.2 583800 22940 ? S 15:28 0:00 _ php-fpm: pool example.com
    exampl+ 17707 4.0 0.2 583800 22940 ? S 15:28 0:00 _ php-fpm: pool example.com
    exampl+ 17707 4.0 0.2 583800 22940 ? S 15:28 0:00 _ php-fpm: pool example.com
    exampl+ 17707 4.0 0.2 583800 22940 ? S 15:28 0:00 _ php-fpm: pool example.com
    exampl+ 17707 4.0 0.2 583800 22940 ? S 15:28 0:00 _ php-fpm: pool example.com
    exampl+ 17707 4.0 0.2 583800 22940 ? S 15:28 0:00 _ php-fpm: pool example.com
    exampl+ 17707 4.0 0.2 583800 22940 ? S 15:28 0:00 _ php-fpm: pool example.com
    exampl+ 17707 4.0 0.2 583800 22940 ? S 15:28 0:00 _ php-fpm: pool example.com
    exampl+ 17707 4.0 0.2 583800 22940 ? S 15:28 0:00 _ php-fpm: pool example.com
    exampl+ 17707 4.0 0.2 583800 22940 ? S 15:28 0:00 _ php-fpm: pool example.com
    ...
    exampl+ 17707 4.0 0.2 583800 22940 ? S 15:28 0:00 _ php-fpm: pool example.com
    mceclip1.png

Cause

The pm variable in PHP Settings is set to ondemand, which means that PHP-FPM will fork processes when requests are received and that can overwhelm your Plesk server in certain scenarios where too many processes stay active for too long.

Resolution

  1. Log into Plesk

  2. Go to Domains > example.com > PHP Settings

  3. In the pm dropdown, choose either static (this ensures a fixed number of child processes defined by pm.child_processes are always available to handle user requests) or dynamic (In this mode, PHP-FPM dynamically manages the number of available child processes and ensures that at least one child process is always available, but the process count will not go higher than the amount configured in the pm.child_processes).

Additional information

PHP: Configuration - Manual | pm string

Tweet
Share
Share
Email
0 Shares
Read the full article
Related Posts

Ruby on Rails vs PHP: Which one’s right for your needs?

Read More »

How to Host a Go App on Plesk

Read More »

Your Complete .htaccess Guide: Including .htaccess Basics and More

Read More »
Knowledge Base

Websites hosted on Plesk server are unavailable with 502 Bad Gateway: upstream sent too big header while reading response header

Read More »

 Website pages based on WordPress show “404 Not Found” when PHP-FPM by Apache is used

Read More »

How to configure Apache to process PHP code inside an .html file on a Plesk server

Read More »

How to install the php-mcrypt module on a Plesk server

Read More »

Hosting Wiki

  • Django
  • Server Redundancy
  • Google Cloud CDN
  • Bare Metal Server
  • PhpMyAdmin
  • phpPgAdmin
  • Oracle VM Server
  • Server Virtualization Software
  • Windows Server
  • Linux
  • PHP
  • MongoDB
  • Domain
  • Plesk
  • Apache Tomcat
  • Apache
  • Web Server
  • DNS Server
X-twitter Linkedin Youtube Reddit Github
  • Product
  • Login
  • Pricing
  • Editions
  • For Partners
  • Partner Program
  • Contributor Program
  • Affiliate Program
  • Plesk University
  • Company
  • Blog
  • Careers
  • Events
  • About Plesk
  • Our Brand
  • Resources
  • User and Admin guides
  • Help Center
  • Migrate to Plesk
  • Contact Us
  • Hosting Wiki
  • Forum
  • Legal
  • Legal
  • Privacy Policy
  • Imprint

© 2025 WebPros International GmbH

Part of the WebPros®  Family