1

Topic: re: php-fpm excessive entires in logfile

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):
- Deployed with iRedMail Easy or the downloadable installer?
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
0.9.9 MARIADB edition.
downloadable installer
Centos 7
MySQL
Nginx
iRedAdmin, PhpMyAdmin

The issue I'm having is with the php-fpm lgging.   Excessive entries:

php-fpm: [08-Dec-2019 11:26:05] NOTICE: [pool inet] child 3717 exited with code 0 after 29.997416 seconds from start
Dec  8 11:26:05 webserver1 php-fpm: [08-Dec-2019 11:26:05] NOTICE: [pool inet] child 3758 started
Dec  8 11:26:08 webserver1 php-fpm: [08-Dec-2019 11:26:08] NOTICE: [pool inet] child 3720 exited with code 0 after 30.001819 seconds from start
Dec  8 11:26:08 webserver1 php-fpm: [08-Dec-2019 11:26:08] NOTICE: [pool inet] child 3768 started
Dec  8 11:26:35 webserver1 php-fpm: [08-Dec-2019 11:26:35] NOTICE: [pool inet] child 3758 exited with code 0 after 30.002738 seconds from start
Dec  8 11:26:35 webserver1 php-fpm: [08-Dec-2019 11:26:35] NOTICE: [pool inet] child 3793 started
Dec  8 11:26:38 webserver1 php-fpm: [08-Dec-2019 11:26:38] NOTICE: [pool inet] child 3768 exited with code 0 after 29.996540 seconds from start
Dec  8 11:26:38 webserver1 php-fpm: [08-Dec-2019 11:26:38] NOTICE: [pool inet] child 3796 started
 

These are every 30 seconds.  I have tried changing the logging from notice to warning with no change.  I have also changed the setting in /etc/php-fpm.d/www.conf from pm.max_requests = 5 to pm.max_requests = 500 with no change in behavior.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: re: php-fpm excessive entires in logfile

Please increate the "pm.max_children" to a larger number and restart php-fpm service.

3

Re: re: php-fpm excessive entires in logfile

ZhangHuangbin wrote:

Please increate the "pm.max_children" to a larger number and restart php-fpm service.

Appears to have worked perfectly, setting value at 500.  What value would you recommend?  Is 500 too much?

4

Re: re: php-fpm excessive entires in logfile

Try 50 first, if still same error in log file, try 100.
If you're running netdata, you can see whether it reaches the max child processes.