Asked • 06/28/19

How to measure actual memory usage of an application or process?

**This question is covered [here][1] in great detail.** How do you measure the memory usage of an application or process in Linux? From the blog article of [Understanding memory usage on Linux][2], `ps` is not an accurate tool to use for this intent. > **Why `ps` is "wrong"** > > Depending on how you look at it, `ps` is not reporting the real memory usage of processes. What it is really doing is showing how much real memory each process would take up __if it were the only process running__. Of course, a typical Linux machine has several dozen processes running at any given time, which means that the VSZ and RSS numbers reported by `ps` are almost definitely *wrong*. [1]: [2]:

1 Expert Answer


Anish R. answered • 05/14/20

4.4 (7)

Senior in Computer Science and Engineering at U of M

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.


Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.