Home > Other > WebFaction Memory Usage Script

WebFaction Memory Usage Script

I have knocked up a simple Ruby script (my first – please be gentle) to parse the output of ps -u -o pid,rss,command and convert the KB values to MB for easier reading.

The script recurses through each process and displays the process ID, memory usage (in megabytes) and the command that it’s executing. It then displays the total memory usage at the end.

Download
memusage.rb (1.21 KB — RB file)

Nick Other ,

  1. No comments yet.
  1. No trackbacks yet.