process memory history
Hi,
I am Angel a newbie...I have a question. Does anybody know how to check the history of which process took up high memory usage for past hours or days? is there such a log for this? Many Thanks |
in general it is not stored, but obviously there is a way (there are several ways) available to monitor a system and you can collect/access these information.
https://www.linux.com/blog/5-command...ry-usage-linux |
To do historical analysis you need a tool that can monitor per process and store the data automatically for all processes. This has never been a standard Linux.
collectl and collectd are two examples - both require some setup prior to the events you want to investigate. Then you can query variously. |
Not that I know off, but it can be achieved with some small bash scripts. For example:
https://stackoverflow.com/questions/...ption-on-linux Also, you could use combinations of watch and ps, in this way: Code:
watch 'ps -eo pid,ppid,cmd,%mem,%cpu --sort=-%cpu | head' Code:
ps -eo pid,ppid,cmd,%mem,%cpu --sort=-%cpu | head >> watchlog |
All times are GMT -5. The time now is 02:34 PM. |