Advertisement

查询Linux进程内存使用情况的方法:top、pmap、ps等

阅读量:

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

ps -aux |grep [PID]

cat /proc/[PID]/status

二者协同应用可取得更优成效,具体实例展示如下:

在这里插入图片描述

参数说明

复制代码
     ps --help all
    
    Usage:
     ps [options]
    
    Basic options:
     -A, -e               all processes
     -a                   all with tty, except session leaders
      a                   all with tty, including other users
     -d                   all except session leaders
     -N, --deselect       negate selection
      r                   only running 

全部评论 (0)

还没有任何评论哟~