I have been trying to solve this problem for quite some time now and I
really don’t have any further clue to investigate.
I am running a mongrel_cluster 1.0.5-2 (mongrel verison : 1.1.5-5) on a
ubuntu box with apache2 2.2.12-1ubuntu2.1
I have 4 different apps on the same box and each app has two mongrel
After a short period of time ( < 2 hours ) some of the 8 mongrel
just stop responding.
I read the mongrel FAQ and tried to
set ActiveRecord::Base.verification_timeout = 14400 (the mysql parameter
set to the default 28800) in myapp/config/environments/production.rb
The problem kept happening.
I decided to lower that number, making it 60.
No more success.
I installed gdb and the ruby macros to make sure i was in the mysql
while hanging and sure enough, here is the top of the BT from GDB :
I figured that since I was running a packaged version of mongrel_cluster
(not the gem installed one), I should use the package version of mysql
driver for ruby.
So i did
gem uninstall mysql
and installed :
apt-get install libmysql-ruby1.8
I then restarted the mongrels and sure enough after 1h25 one of them was
hanging in the mysql_adapter.rb, showing the same backtrace as before.
I really am out of clue here and any advice / help would be much
I have to note that I am far from being an ROR guru and maybe the
to my problem is simpler than what I have been looking for, but I just
know where to look anymore.
Thanks for any advice / answer