cat /proc/meminfo #系统总内存分析,可用的物理内存=MemFree+Buffers+Cached
cat /proc/{pid}/maps #进程内存分析
ps -ef | grep 进程关键字 //查看指定进程的信息
ps aux --sort=%mem(或者 ps aux --sort %mem) //按照内存占用率的升序排序
ps aux --sort=-%mem |head (或者 ps aux --sort -%mem) //按照内存占用率降序排序
ps aux --sort=-%cpu | head //按照cpu占有率排序
ps aux | grep -e test //打印含义test关键字的进程
ps -aux | grep -E "test|PID" //打印 包含test关键字的进程信息
iostat -x 1 3 #查看磁盘读写
iotop -a -o #进程级I/O
strace -e trace=read,write -p $PID #文件级跟踪
echo 3 | sudo tee /proc/sys/vm/drop_caches #缓存清理(谨慎)
uptime #查看平均负载