Matthew Hutchinson

about

Matt is a web developer from N. Ireland. He currently runs Hiddenloop and works in Dublin. Want to find out just a little bit more ?

An audio feed is available for the latest articles at matthewhutchinson.net, find it here.

Dreamhost FCGI saga

posted on Friday, the 18th of November 2005 at 06:03 in , , ,

After reading on nubyOnRails about this issue – I have setup an hourly cronjob to kill all defunct Ruby processes on my dreamhost box. You may see some slight improvements in speed on this site. Now if we could only convince dreamhost to run lighttpd we’d be sorted.

Thanks noR !

the cron

  1. hourly – kill defunct ruby procs 01 * * * * /home/hiddenloop/crontabs/killrubyprocs

the script

!/bin/sh

export procs=”`ps x -o ppid,comm | grep “” | sed -e “s/^[ \t]\([0-9]\) ruby.*/\1/”`” for i in $procs; do kill -9 $i done

Liquid error: Expected /u/apps/matthewhutchinson.net/current/config/../app/models/tagging.rb to define Tagging