Linux – How to see the memory usage of a Linux process

linux

how can I see the memory usage of a Linux process?

Best Answer

You might want to have a look at 'pmap', e.g.

pmap -d [PROCESS ID]

At the bottom you will see how much memory is shared and how much of it is private to the process. For example: Some applications look like they use an awful lot of memory, but in reality it is just a lot of shared libraries that are taken into the calculation.