I set up my application on Linux (Suse), running MySQL (which sits on a
different server) and Webrick. It works fine. However, every morning
when I come back to my desk, the application gets unresponsive. If I
simply access http://host:3000 http://host:3000/ I can see the rails
greeting page (that means Webrick is running fine right?), but if I
access any of pages in the application, the browser just loads forever.
It doesn’t say page not found or anything, but keeps connecting until
timed out. (If I just kill the process, and restart script/server -d,
the page loads fine again.)
I thought it might have something to do with MySQL’s connection, so I
wrote a controller that simply has render_text … when I access
http://host:3000/test, it doesn’t load either. So does that mean it’s
not MySQL’s problem?
So then I suspected it might still be a problem with Webrick. However,
from reading the mailing list, people seem to be able to run Webrick
continuously for days with no problem…
I don’t really know where to start debugging this problem. So any tips
would be appreciated.
Thanks in advance.
Sr. Software Engineer