https://github.com/samdark/php-fpm_tuner
A script to tune PHP-FPM
https://github.com/samdark/php-fpm_tuner
perform php php-fpm tuning
Last synced: 6 months ago
JSON representation
A script to tune PHP-FPM
- Host: GitHub
- URL: https://github.com/samdark/php-fpm_tuner
- Owner: samdark
- License: bsd-3-clause
- Created: 2023-12-25T16:45:03.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-06-11T05:54:44.000Z (over 1 year ago)
- Last Synced: 2024-12-10T17:48:00.671Z (about 1 year ago)
- Topics: perform, php, php-fpm, tuning
- Language: PHP
- Homepage:
- Size: 4.88 KB
- Stars: 169
- Watchers: 10
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# PHP-FPM tuner
Simple script that helps tuning PHP-FPM.
```
❯ php php-fpm-tuner.php
pm.max_children = 11
start_servers = 3
min_spare_servers = 3
max_spare_servers = 8
```
The script calculates `pm.max_children` based on available free memory and memory used for each worker (it is either determined from currently running workers or php.ini memory limit). `start_servers`, `min_spare_servers`, and `max_spare_servers` are taking both memory limits and CPU cores available into account.