linux下查询进程占用的内存方法总结

Write Comment

linux下查询进程占用的内存方法总结

卷心菜 卷心菜
Abstract 假设现在有一个「php-cgi」的进程 ,进程id为「25282」。现在想要查询该进程占用的内存大小。linux命令行 下有很多的工具进行查看,现总结常见的几种方式: ## 通过进程的 status ```yaml [r

假设现在有一个「php-cgi」的进程 ,进程id为「25282」。现在想要查询该进程占用的内存大小。linux命令行
下有很多的工具进行查看,现总结常见的几种方式:

通过进程的 status

[root@web3_u ~]# cat /proc/25282/status
Name:    php-cgi
State:    S (sleeping)
Tgid:    25282
Pid:    25282
PPid:    27187
TracerPid:    0
Uid:    99    99    99    99
Gid: 
Login required to read the rest of the content

登录 to comment~