pksteyn / php-fpmpal

PHP-FPM script that makes recommendations on max_children
GNU General Public License v3.0
55 stars 23 forks source link

php-fpmpal

Bash script script that makes recommendations on max_children for each PHP-FPM pool on a server.

1) What the main script (php-fpmpal.sh) does is:

2) Cron job (cron.sh):

SHELL=/bin/bash

PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

/10 * root /bin/bash /path/to/cron.sh

3) Cron job interpreter (interpretcron.sh):

Usage: interpretcron.sh [OPTION]

Arguments:

-ms For each logfile in /var/log/php-fpmpal show the total memory usage per PHP-FPM pool

-msl [FILENAME] Show the total memory usage per PHP-FPM pool for this logfile