i want get the memory size used by a process in Linux. How can I do that?
Asked
Active
Viewed 61 times
0
-
`cat /proc/
/status` – twalberg Apr 27 '15 at 18:58 -
See here, same as macos https://stackoverflow.com/a/41207962/2836621 – Mark Setchell Sep 19 '21 at 19:03
2 Answers
0
ps aux --sort -rss
This will give you a listview of your Prozesses, Wortes by memory usage.

tgr
- 3,557
- 4
- 33
- 63
0
some useful commands to get memory info for a process:
pmap -x <PID>
top -p <PID>

Venkatesh Parthasarathy
- 349
- 4
- 17