Welcome to Centmin Mod Community
Register Now

Master Branch update cminfo php memory routines in 123.09beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, Jan 13, 2020.

  1. eva2000

    eva2000 Administrator Staff Member

    May 24, 2014
    Brisbane, Australia
    Local Time:
    3:19 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    update cminfo php memory routines in 123.09beta01

    - Update cminfo top and cminfo phpmem routines to also report how many PHP-FPM masters/pools & how many PHP-FPM children there are and list their PHP-FPM pool names
    - Add cminfo phpstats command to combine systemd PHP-FPM status stats with phpmem output
    - Again this will only display for CentOS 7 systems with pm = static process manager and not the default PHP-FPM pm = ondemand

    When pm = ondemand is used the following output is displayed
    Code (Text):
    cminfo phpmem
    PHP-FPM pm = ondemand in /usr/local/etc/php-fpm.conf
    PHP-FPM memory usage only viewable when pm = static

    Example for cminfo phpstats command when pm = static is used

    Code (Text):
    cminfo phpstats
    Total PHP-FPM Master Processes: 1
    PHP-FPM Pool Names:
    27335 php-fpm: master /usr/local/etc/php-fpm.conf
    Current Free Memory (KB): 26181960
    PHP-FPM Available Memory (KB): 26423228
    Estimated Max PHP Children: 3285.54
    Estimated Max PHP Children To CPU Thread Ratio: 410.693
    PHP-FPM Total Children: 30 from 1 PHP-FPM master(s)
    PHP-FPM Total Used Memory (KB): swap:0 uss:7824 pss:12832 rss:241268
    PHP-FPM Average Per Child (KB): swap:0 uss:260.8 pss:427.733 rss:8042.27
    uss = user set size
    pss = process set size
    rss = resident set size
    Ready to handle connections
    pool:                 www
    process manager:      static
    start time:           12/Jan/2020:15:22:22 +0000
    start since:          9
    accepted conn:        2
    listen queue:         0
    max listen queue:     0
    listen queue len:     65535
    idle processes:       29
    active processes:     1
    total processes:      30
    max active processes: 1
    max children reached: 0
    slow requests:        0

    Continue reading...

    Centmin Mod Github Master branch

    Master branch is where most recent commits are made as at May 24, 2015.
    Last edited: Jan 13, 2020