Topic: Mongrel clusters stop responding after a long idle time


I have a ruby on rails website. Server configuration is:

1. Nginx
2. 4 mongrel clusters running on different ports.

After a long idle time few of the mongrel clusters stops responding. I have set "ActiveRecord::Base.verification_timeout = 14400" in environment.rb file, but still it's not working.

On executing "lsof -i -P | grep CLOSE_WAIT" command, I usually get a long list of mongrel_clusters.

Please let me know if you have any solution for this problem.

Thanks in advance.