Difference between revisions of "Scratch pad"
From SPOT CHECK IT
(Created page with "'''This page is to keep items I will organize on the page later or ideas.''' Analyse and calculate php-fpm runner settings https://megamorf.gitlab.io/2021/03/08/analyse-and-calculate-php-fpm-runner-settings/") |
|||
Line 3: | Line 3: | ||
Analyse and calculate php-fpm runner settings | Analyse and calculate php-fpm runner settings | ||
https://megamorf.gitlab.io/2021/03/08/analyse-and-calculate-php-fpm-runner-settings/ | https://megamorf.gitlab.io/2021/03/08/analyse-and-calculate-php-fpm-runner-settings/ | ||
Get average memory of the php-fpm process | |||
ps --no-headers -o "rss,cmd" -C php-fpm | awk '{ sum+=$1 } END { printf ("%d%s\n", sum/NR/1024,"M") }' |
Revision as of 00:57, 12 April 2022
This page is to keep items I will organize on the page later or ideas.
Analyse and calculate php-fpm runner settings https://megamorf.gitlab.io/2021/03/08/analyse-and-calculate-php-fpm-runner-settings/
Get average memory of the php-fpm process
ps --no-headers -o "rss,cmd" -C php-fpm | awk '{ sum+=$1 } END { printf ("%d%s\n", sum/NR/1024,"M") }'