Webrick 500 error

Hi,

This is my second question on the poor performance of webrick
(previously I had a problem with Ajax).
I have a somewhat simple Rails application which works just fine, but
when I come back to work the next day, the server responds with error
500. It looks like if it is running more than 12 hours, it’ll crap-out.
I don’t use CVS (which I read on the web it is a common cause of this
type of error), I’m not using fastcgi (since I’m not running Apache), so
what is it happening?
The log file does not contain any error messages and no errors are
printed in the console which started the server (except the IP +
requested page + 500).
Has anyone noticed this kind of issue before?

Thanks,
Tiberiu

My guess is that your db connection is timing out. Is there a firewall
between your app and the db? If so, that could be timing out your
sessions.

Hmmm, I haven’t thought about that. It sort of makes sense, since if I
go to http://localhost:3000/, the Ruby on Rails welcome page does
display correctly.
I also noticed that if I leave my Visual Studio project open on the same
machine, my ODBC Data Connection to the database is timed-out (so I have
to Refresh it).
Still, I was expecting some detailed messages from webrick.
I’m pretty sure there are firewalls in between the webserver and the
database, but how can I control them to stop this time-out issue?

Thanks,
Tiberiu

I use Monit to monitor mongrel (would work fine for webrick). Take a
look here: Easy, proactive monitoring of processes, programs, files, directories, filesystems and hosts | Monit . You can google around for
sample configs if you need them. If you are on Windows, I don’t know,
but I’m sure you can find something.

Thanks William.
I’m looking into Apache and Mongrel now.

Hi Mr Tips

Apache 2.26 (latest) with mod_proxy_balancer +a pack of mongrels is
the way to go :slight_smile:

I’m using Apache + monrel_cluster and it is great. However, my
database connection still times out.

Hi Mr Tibs

On Nov 3, 3:13 am, Mr_Tibs [email protected] wrote:
I’m using Apache + monrel_cluster and it is great. However, my
database connection still times out.

CCH: Then you should check out your database settings etc

CCH
http://[email protected]