How to find the memory consumption of a particular process in linux for every 5 seconds

前端 未结 4 1806
Happy的楠姐
Happy的楠姐 2021-02-06 02:56

I just want to know how to find the memory consumption of a particular process for particular time(say 5 seconds)

I am new to linux. So, detailed steps of doing that wil

4条回答
  •  灰色年华
    2021-02-06 03:11

    Use top -p PID where PID is the process ID. Information about the process should be displayed, including percent of system memory used. Type d and an integer in seconds to change the refresh rate.

提交回复
热议问题