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 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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. Tiberiu Motoc wrote:> 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 >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I use Monit to monitor mongrel (would work fine for webrick). Take a look here: http://www.tildeslash.com/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. Tiberiu Motoc wrote:> 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 >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Thanks William. I''m looking into Apache and Mongrel now. On Oct 13, 6:22 pm, William Pratt <bi...-YbheRAKfYF4eIZ0/mPfg9Q@public.gmane.org> wrote:> I use Monit to monitor mongrel (would work fine for webrick). Take a > look here:http://www.tildeslash.com/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. > > > > Tiberiu Motoc wrote: > > Hmmm, I haven''t thought about that. It sort of makes sense, since if I > > go tohttp://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- Hide quoted text - > > - Show quoted text ---~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hi Mr Tips Apache 2.26 (latest) with mod_proxy_balancer +a pack of mongrels is the way to go :-) On Oct 25, 7:02 am, Mr_Tibs <tiberiu.mo...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Thanks William. > I''m looking into Apache and Mongrel now. > > On Oct 13, 6:22 pm, William Pratt <bi...-YbheRAKfYF4eIZ0/mPfg9Q@public.gmane.org> wrote: > > > I use Monit to monitor mongrel (would work fine for webrick). Take a > > look here:http://www.tildeslash.com/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. > > > Tiberiu Motoc wrote: > > > Hmmm, I haven''t thought about that. It sort of makes sense, since if I > > > go tohttp://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- Hide quoted text - > > > - Show quoted text ---~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I''m using Apache + monrel_cluster and it is great. However, my database connection still times out. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hi Mr Tibs>On Nov 3, 3:13 am, Mr_Tibs <tiberiu.mo...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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://cch4rails-oYhOJEWzGRFWk0Htik3J/w@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---