[Boulder-Denver Ruby Group] Rails DB Con timeout

Kyle inboulder at gmail.com
Thu Nov 9 19:35:47 EST 2006


Hi,
I'm new to rails and put together my first rails app at
http://69.55.233.76/journal .
I'm experiencing a bit of a problem though in that if nobody hits the
app for a few hours the DB connection times out. Does anyone have
experience fixing this? I've read about this problem online and
updated everything rails, gems, etc. The behavior manifests as
'Application Error (rails)' if nobody has accessed the app for awhile,
but then starts working again on a browser refresh. (before updating
rails it timed out indefinitely)
I'm using the latest MySQL, Rails, Ruby ver, running on Fedora core 4.
The behavior is the same on mongrel and Webrick

Any ideas? (I supposed I could have a cron job hit the app every hour,
but this is ghetto)

Cheers,
Kyle


More information about the Bdrg-members mailing list