Learn about Centmin Mod LEMP Stack today
Become a Member

Beta Branch update cminfo top command with php-fpm mem stats in 123.09beta01

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

  1. eva2000

    eva2000 Administrator Staff Member

    45,175
    10,275
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,924
    Local Time:
    4:11 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    update cminfo top command with php-fpm mem stats in 123.09beta01

    - Add to cminfo top command new php-fpm children process memory usage stats
    - Add to cminfo new phpmem command to just display only those php-fpm children memory stats
    - Will only work when you switch default php-fpm process manager from ondemand to static and only work son CentOS 7 right now

    example cminfo top output for php-fpm stats

    Code (Text):
    php-fpm stats
    
    Current Free Memory (KB): 938604
    PHP-FPM Available Memory (KB): 1236188
    Estimated Max PHP Children: 124.622
    PHP-FPM Total Used Memory (KB): swap:0 uss:6120 pss:13004 rss:297584
    PHP-FPM Average Per Child (KB): swap:0 uss:204 pss:433.467 rss:9919.47
    uss = user set size
    pss = process set size
    rss = resident set size
    
    Processes active: 0, idle: 30, Requests: 0, slow: 0, Traffic: 0req/sec
    pool:                 www
    process manager:      static
    start time:           12/Jan/2020:01:02:46 +0000
    start since:          218
    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...

    123.09beta01 branch
     
    Last edited: Jan 12, 2020