How to see top processes sorted by actual memory usage?

前端 未结 12 993
栀梦
栀梦 2020-12-07 06:53

I have a server with 12G of memory. A fragment of top is shown below:

PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                              


        
12条回答
  •  旧时难觅i
    2020-12-07 07:09

    List and Sort Processes by Memory Usage:

    ps -e -orss=,args= | sort -b -k1,1n | pr -TW$COLUMNS
    

提交回复
热议问题