How can I measure the actual memory usage of an application or process?

后端 未结 30 2719
心在旅途
心在旅途 2020-11-22 03:01

This question is covered here in great detail.

How do you measure the memory usage of an application or process in Linux?

From the blog articl

30条回答
  •  醉酒成梦
    2020-11-22 03:44

    Three more methods to try:

    1. ps aux --sort pmem
      It sorts the output by %MEM.
    2. ps aux | awk '{print $2, $4, $11}' | sort -k2r | head -n 15
      It sorts using pipes.
    3. top -a
      It starts top sorting by %MEM

    (Extracted from here)

提交回复
热议问题