Now you can run the following to get the memory in a format that R can read. I assume your log line is as follows:
1234567890 RAM USAGE: 27456K
Run this (or change to set):
$ grep 'RAM USAGE' fubar.log | awk '{print s " " $1 " " $4; s++}' | sed 's/K//g' > mem.log
Then you can run this:
#!/bin/sh rm -f mem.png R --vanilla --no-save --slave <<RSCRIPT lst <- read.table("mem.log") attach(lst) m = memory / 1024.0 summary(m) png(filename="mem.png", width=1024) plot(date, m, type='l', main="Memory usage", xlab="time", ylab="memory") RSCRIPT
and get a good graph.
Sardathrion Mar 04 '10 at 8:32 2010-03-04 08:32
source share