How can I find the amount of main memory consumed by a process using ps aux
?
I have a process which runs for half an hour. Is it possible to find the maximum amount of main memory consumed by it using ps aux
?
I tried to run ps aux
but it only gives me the amount of memory consumed at the time I ran it. I do not see how I can find the maximum amount of main memory consumed by the process. One option is to run ps
again and again and to keep looking at the output. I do not find that option feasible enough. Is there any other way out in Linux?