Add the Papertrail add-on to your app and you'll have a lot more logging 
information to work with. It can even send you an email when a log entry that 
matches a particular regex occurs, which sounds like it could be helpful here 
(assuming the logs indicate some sort of issue). And it could be free.

Without more information, it would only be a guess to whether the issue lies in 
Heroku or the app code. If you only have one dyno, it will sleep after a few 
minutes of inaction, but I get the impression you are running more than one 
dyno so this shouldn't happen - and besides, the single dyno is still supposed 
to wake up.

I think the log data is vital, even if you have to crank up the logging level 
until you find the culprit.

Chris




On 06/12/2012, at 13:03, Iain Beeston <[email protected]> wrote:

> Lately we've had problems with the web-server processes in our rails 3.1 app 
> intermittently stop responding. We haven't been able to work out why (no 
> exceptions, high cpu or memory usage or networking calls) - it just seems 
> like every few days one them just randomly hangs and never recovers. The 
> process is still there, but not responding to requests and everything sent to 
> it times out. We're using heroku so our logging options are limited.
> 
> So, I was wondering - what do people use to keep their servers responsive? 
> (Especially on "hands-off" platforms like heroku) How common is it to 
> routinely restart processes? (Sounds like the wrong solution to me, but some 
> people recommend it)
> 
> 
> Iain Beeston
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Ruby or Rails Oceania" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/rails-oceania?hl=en.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.

Reply via email to