sed command
Modify the following configuration to match your PHP-FPM processing needs on your server
sed -nE 's/^[[:space:]]*(pm(\.[a-z_]+)?)[[:space:]]*=[[:space:]]*(.*)/\1 = \3/p' /etc/php/8.3/fpm/pool.d/www.confJavaScript
pm: Sets the process manager type:static: Fixed number of child processes.dynamic: Adjusts processes based on demand.ondemand: Spawns processes only when needed.
pm.max_children: Max number of child processes.pm.start_servers: Number of processes to start with (dynamic only).pm.min_spare_servers: Minimum idle processes.pm.max_spare_servers: Maximum idle processes.pm.process_idle_timeout: Time before stopping idle processes.access.log: Logs PHP-FPM pool requests.slowlog: Path to log slow requests.request_slowlog_timeout: Timeout to flag slow requests.
Reboot php-fpm after changes
sudo systemctl restart php8.3-fpmJavaScript