User Tools

Site Tools


php-fpm_investigation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
php-fpm_investigation [2016/05/16 19:06] luke7858php-fpm_investigation [2024/05/23 07:26] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +=== Children Check ===
 List the max children configuration for all php-fpm pools: List the max children configuration for all php-fpm pools:
 <sxh bash> <sxh bash>
 grep -v '^;\|^$' /etc/php-fpm.d/*.conf | awk '/pm.max_children/' grep -v '^;\|^$' /etc/php-fpm.d/*.conf | awk '/pm.max_children/'
 </sxh> </sxh>
 +
 Example output: Example output:
 <sxh bash> <sxh bash>
Line 14: Line 16:
 </sxh> </sxh>
 \\ \\
-\\+=== Process Check ===
 Check the amount of processes running for each php-fpm pool: Check the amount of processes running for each php-fpm pool:
 <sxh bash> <sxh bash>
Line 28: Line 30:
       7 502 S php-fpm: site3.co.uk       7 502 S php-fpm: site3.co.uk
       5 apache S php-fpm: www       5 apache S php-fpm: www
 +</sxh>
 +\\
 +=== Netstat Check ===
 +<sxh bash>
 +netstat -pant | awk '/fpm/ {print $5, $6, $7}' | awk -F'[: /]' '{print $1, $3, $5}' | sort | uniq -c | sort -rn
 +</sxh>
 +Example output:
 +<sxh bash>
 +     10 10.x.x.x ESTABLISHED php-fpm
 +      7 127.0.0.1 ESTABLISHED php-fpm
 +      6 x.x.x.x SYN_SENT php-fpm
 +      3 127.0.0.1 CLOSE_WAIT php-fpm
 +      1 0.0.0.0 LISTEN php-fpm
 +</sxh>
 +
 +\\
 +\\
 +\\
 +\\
 +Doesnt work yet:
 +<sxh bash>
 +awk  '!/^;|^$/ && /pm.max_children/' /etc/php-fpm.d/*.conf
 </sxh> </sxh>
php-fpm_investigation.1463425614.txt.gz · Last modified: 2024/05/23 07:26 (external edit)

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki