Codice:
ps -eo size,pid,user,command --sort -size | awk '{ hr=$1/1024 ; printf("%13.2f Mb ",hr) } { for ( x=4 ; x<=NF ; x++ ) { printf("%s ",$x) } print "" }' | grep php-fpm
vi restituirà un output "human readable" Statistiche: Inviato da Martyn — 13/05/2018, 16:09
Codice:
cat /proc/cpuinfo
Codice:
free -h
Codice:
ps -ylC php-fpm --sort:rss
Codice:
ps --no-headers -o "rss,cmd" -C php-fpm | awk '{ sum+=$1 } END { printf ("%d%s\n", sum/NR/1024,"M") }'
Codice:
service php*[¹]-fpm restart
Statistiche: Inviato da Martyn — 13/05/2018, 15:55