It's not all about "unstable" Mongrel :)
Friday, January 19th, 2007Well, after 2 days of weird server behavious, after which I have installed the Monit services monitor, it turned out that Mongrel was not actually the biggest source of the problem.
Yesterday, server started behaving very weirdly - restarting itself every 10-20 minutes. No trace of errors in logs, no notifications about restart to be performed even. I though that may be, just may be it is a software problem, although everything looked like a hardware problem from at the first glance. So I have checked cron (oh well, who know may be there's some process restarting the server?), even tried to turn off Monit as it was the only software I have installed recently. All this just to find the server restarting in next 10 minutes :)
At this point, I finally decided to attach a monitor to the server - yeah it was headless before that heh :) And once it was done, I could witness the exact way the server restarts itself - by just.. turning itself off and on, like somebody just pressed the Reset button. So.. since then it definitely started to look like hardware problems so I took the server offline completely and booted up from memtest CD. Just to find out that server restarts itself before the test progress even reaches 2%.
Long story short - got a new memory module, installed, started server - and all is fine since then. But anyway, all these manipulations with setting up Monit were not without use. Mongrel instances still crash several times a day. But are quickly relaunched by Monit.
So, hopefully now more midnight server fixes :)

