Looking for Apache Global Configuration and PHP-FPM Pool Options Suggestions

MyRooT

Registered
Jan 16, 2017
1
0
0
Turkey
cPanel Access Level
Root Administrator
The most ideal Apache Global Configuration and What should be the PHP-FPM Pool Options?

Only one website is hosted on the Dedicated server. A very high website traffic. The average number of page views per day is 250,000.

1. Apache Server MPM: How should the best configuration of prefork Global Configuration be?

2. In the PHP-FPM Pool Options; What should be the values of
Max Children?
Process Idle Timeout? and
Max Requests?

Frequent error message from server:

User:.... PID:19316 PPID:2073 Run Time:81(secs) Memory:674236(kb) RSS:46036(kb) exe:/opt/cpanel/ea-php70/root/usr/sbin/php-fpm cmd:php-fpm: pool ...

-------------
Dedicated Server Features:

Dell R220
4x 3.50 GHz Intel® Xeon® E3-1241 v3 (1 Soket)
16 GB RAM
2 x 600 GB SAS
Total processors: 8
------
The latest Settings are:

Apache Server MPM: prefork
Global Configuration

The following settings have been saved:
keepalive: On
keepalivetimeout: 5
serverlimit: 5000
maxclients: 5000
maxrequestsperchild: 2500
maxkeepaliverequests: 150
startservers: 25
minspareservers: 25
maxspareservers: 50
timeout: 150
----
PHP-FPM Pool Options:
System PHP-FPM Status: On
Max Children: 150
Process Idle Timeout: 10
Max Requests: 5000
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,228
463
Hello @MyRooT,

The following resource is a good place to start since you are using PHP-FPM:

Tutorial - PHP-FPM Performance Tuning Basics

Additionally, you may find the discussion on the following thread useful:

What kind of stack are people using for speed?

Only one website is hosted on the Dedicated server. A very high website traffic. The average number of page views per day is 250,000.
You may also need to consider reaching out to a system administration service provider that specializes in optimization/performance. You can find a list of companies offering system admin services at:

System Administration Services | cPanel Forums

Thank you.