Think before you speak, read before you think.

统计进程占用内存

by

in

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

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *