I checked few programs such as htop or top command but couldn't find any features for logging per minute.
Is there a way to do that for tracking memory issues ?
edit: I was using linode and decided to use Longview.

|
I checked few programs such as htop or top command but couldn't find any features for logging per minute. Is there a way to do that for tracking memory issues ? edit: I was using linode and decided to use Longview.
|
||||
|
|
|
Install and configure the
|
||||
|
|
|
If I were doing this I'd probably script something up with RRDtool. RRDtool is something that is built for interval-based data-collection and then building graphs off the back of the data. If you've ever seen a netgraph on an ISPs control panel, it was probably done with RRDtool. How you implement it is up to you. There are "pure" bash solutions with cron but there are also nice Python and Perl options floating around out there too:
If you want a lot more than this, check out Munin. This uses RRDtool prolifically to log a whole load of system data and generates static HTML pages at a set interval. |
||||
|
|
|
You only have to remember that actually free RAM is "free + cache + buf". For logging purpose it might have sense to print it out time stamped which can be accomplished in various ways, for e. g.:
|
||||
|
|
|
There is one more way to do this. By using cron jobs we can get this.
the script is simply
before placing the script do
so create above script and do it as I said then place the script at /usr/bin location . then open your
and place the first line there . That script executes for every minute and gives memory details for every minute . So finally that log.txt file will hold the Memory log details for every minute. and I have got one more useful information for you that
|
||||