Posts [ 4 ]

Topic: Mongrel slows down after a while

We have a new rails app that we have deployed for a few people to look at. When I say few people, I mean 5-10 users. There are at most 3-4 users accessing the app at any point of time. I have configured Apache in front of Mongrel with the help of URL redirection and proxy. When I start Mongrel the application is reasonably fast. But after sometime - say 6-8 hours, the application starts to crawl. And it keeps crawling till I stop and start Mongrel again. It's worth mentioning that I'm running Mongrel in the development environment. I'm not a rails expert. Can someone please help!!!

The responses look ok, they're well under one second. But when mongrel starts crawling, and I tail the log, the log gets written very slowly. Say when I click the "login" button, say there are 5 requests that are fired (login, display main page, run auto-refresh etc. etc.) . I see that there is a huge gap between each of the requests being written onto the logs. There is also a memory build up as time passes.