How to see top processes sorted by actual memory usage?

前端 未结 12 986
栀梦
栀梦 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条回答
  •  半阙折子戏
    2020-12-07 07:31

    First you should read an explanation on the output of free. Bottom line: you have at least 10.7 GB of memory readily usable by processes.

    Then you should define what "memory usage" is for a process (it's not easy or unambiguous, trust me).

    Then we might be able to help more :-)

提交回复
热议问题