top
htop
iftop檢視網絡
monit
https://github.com/giampaolo/psutil 開源
檢視TPC狀态為ESTABLISHED的連接配接數:
netstat -na|grep ESTABLISHED|wc -l
加:netstat -na|grep TIMEWAIT|wc -l
記憶體占用的前40個程序:
ps auxw|head -1;ps auxw|sort -rn -k4|head -40
total : 表示系統的總記憶體
used : 表示應用程式已經使用的記憶體
free : 表示目前還沒有被使用的記憶體
shared :表示共享連結庫使用的記憶體
buff/cache : 表示系統的page cache和buffer使用到的記憶體
available : 表示應用程式還可以申請到的記憶體
———————
作者:lantianjialiang
來源:CSDN
原文:https://blog.csdn.net/lantianjialiang/article/details/78527295
版權聲明:本文為部落客原創文章,轉載請附上博文連結!
還有
netstat -an | grep -E “^(tcp)” | cut -c 68- | sort | uniq -c | sort -n
參考:
http://blog.51cto.com/zhangziqiang/510505