Plesk

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

Symptoms

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