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 Ruby, WebFaction
A list of some useful bits and pieces gathered from the WebFaction forum, support system and so on.
Find a process and kill it
ps -u <username> -o pid,command
kill <process_id>
Memory usage (outputs in Kilobytes)
ps -u <username> -o rss,command
Cron Setup
If you’re not familiar with vi, you can change the default editor to something easier such as nano by typing: export VISUAL='nano'.
You can add/modify/remove your cron-jobs by typing: crontab -e
Software
Nick Other WebFaction