ps -ylC php-fpm --sort:rss

From wikieduonline
Jump to navigation Jump to search

ps -ylC php-fpm --sort:rss
ps -ylC php-fpm7.2 --sort:rss
ps -ylC php-fpm7.2 --sort:rss
S   UID   PID  PPID  C PRI  NI   RSS    SZ WCHAN  TTY          TIME CMD
S     0 10836     1  0  80   0  6960 91494 ep_pol ?        00:06:45 php-fpm7.2
S    33 17394 10836  2  80   0 74596 95123 skb_wa ?        00:00:20 php-fpm7.2
S    33 17429 10836  2  80   0 80244 96475 skb_wa ?        00:00:16 php-fpm7.2
S    33 17287 10836  2  80   0 81336 96457 skb_wa ?        00:00:35 php-fpm7.2


ps --no-headers -o "rss,cmd" -C php-fpm | awk '{ sum+=$1 } END { printf ("%d%s\n", sum/NR/1024,"M") }'
ps --no-headers -o "rss,cmd" -C php-fpm7.2 | awk '{ sum+=$1 } END { printf ("%d%s\n", sum/NR/1024,"M") }'

Related[edit]

ps -e

See also[edit]

Advertising: