Skip to content

Instantly share code, notes, and snippets.

@AdamMagaluk
Created November 25, 2013 17:28
Show Gist options
  • Save AdamMagaluk/7645086 to your computer and use it in GitHub Desktop.
Save AdamMagaluk/7645086 to your computer and use it in GitHub Desktop.
Memory log script
#!/bin/bash
rm mem.log
while true; do
t=`date +%s`
data=`ps -C lt-v3node -o pid=,rss=,vsz=`
echo $t $data >> mem.log
echo $t $data
#gnuplot gnuplot.script
sleep 1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment