Skip to content

Instantly share code, notes, and snippets.

@obukhov
Created September 10, 2014 15:19
Show Gist options
  • Save obukhov/91fb907cb93e5de8cfa6 to your computer and use it in GitHub Desktop.
Save obukhov/91fb907cb93e5de8cfa6 to your computer and use it in GitHub Desktop.
Log top memory status to log every second
while true; do echo `date` `top -b -n 1 | grep Mem` >> top.log; sleep 1; done&
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment