Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Apologies for downtime - weird Rails issues (See related posts)

I apologise for the downtime on Sunday and early Monday. I am buying a new server to spread the load.

One of the biggest problems with this server is that after an hour or two, Snippets' dispatch.fcgi is using tons of CPU and not serving requests. Despite setting FCGIConfig properly, these processes are not getting killed.

I've written and cronned a Perl script that does a killall -9 on ruby and dispatch.fcgi processes whenever load goes over a certain amount.

Bloocy weird, and highly annoying. It's like dispatch.fcgi is getting caught someplace.

Comments on this post

peter posts on May 23, 2005 at 21:24
Running the app in development mode might not have been helping..
rutherfj posts on May 24, 2005 at 22:15
I came across this post that indicates there is a memory leak in ruby-fcgi 0.8.5

http://www.robbyonrails.com/articles/2005/05/12/alert-ruby-fcgi-0-8-5-memory-leak

I had the same issue last week, on a developement only app. I haven't tried the patch yet, so can't report on success!
jaso9 posts on Jun 02, 2005 at 17:19
coop,

i've been having a similar problem with one of my sites. is snippets hosted on lighttpd? my app seems to freeze several times a day, where lighttpd is still running but the app isnt serving anything. i set up daedalus to check a test page every few minutes and restart lighttpd, but even that isnt working 100%.. can you share your perl script? i'll email you about it as well..

<senyl>

You need to create an account or log in to post comments to this site.


Click here to browse all 4855 code snippets

Related Posts