Skip to main content

PHP FPM Keeps Eating Memory Until My Website Crashes

Comments

3 comments

  • cPanelLauren
    Have you checked the PHP-FPM error logs for any indication of what is going on when PHP-FPM is consuming more memory than anticipated? The error logs are located per PHP version in the following location: /opt/cpanel/ea-phpXX/root/var/log/php-fpm/error.log
    0
  • ChitruP
    Hi, These are the warning and errors I saw in error.log file: [12-Oct-2020 10:41:02] WARNING: [pool domain_com] child 18510 said into stderr: " " [12-Oct-2020 10:41:24] WARNING: [pool domain_com] child 18543 said into stderr: " " [12-Oct-2020 10:41:24] WARNING: [pool domain_com] child 18433 said into stderr: " " [12-Oct-2020 10:41:45] WARNING: [pool domain_com] child 18554 said into stderr: " " [12-Oct-2020 10:41:45] WARNING: [pool domain_com] child 18459 said into stderr: " " [12-Oct-2020 10:41:50] WARNING: [pool domain_com] child 18398 said into stderr: " " [12-Oct-2020 10:42:07] WARNING: [pool domain_com] child 18495 said into stderr: " " [12-Oct-2020 10:42:24] NOTICE: Reloading in progress ... [12-Oct-2020 10:42:34] NOTICE: reloading: execvp("/opt/cpanel/ea-php73/root/usr/sbin/php-fpm", {"/opt/cpanel/ea-php73/root/usr/sbin/php-fpm", "--nodaemonize"}) [12-Oct-2020 10:42:34] WARNING: Nothing matches the include pattern '/opt/cpanel/ea-php73/root/etc/php-fpm.d/*.conf' from /opt/cpanel/ea-php73/root/etc/php-fpm.conf at line 8. [12-Oct-2020 10:42:34] ERROR: No pool defined. at least one pool section must be specified in config file [12-Oct-2020 10:42:34] ERROR: No pool defined. at least one pool section must be specified in config file [12-Oct-2020 10:42:34] ERROR: failed to post process the configuration [12-Oct-2020 10:42:34] ERROR: failed to post process the configuration [12-Oct-2020 10:42:34] ERROR: FPM initialization failed [12-Oct-2020 10:42:34] ERROR: FPM initialization failed
    0
  • ChitruP
    Hi, I Solved the problem. I was using a library for sending curl request which was using a lot of memory. I changed the library and it it is working fine.
    0

Please sign in to leave a comment.