# Mongrel freeze

**URL:** <https://www.ruby-forum.com/t/mongrel-freeze/143039>\
**Category:** Rails\
**Created:** [July 14, 2008, 6:29pm UTC](https://www.ruby-forum.com/t/mongrel-freeze/143039 "2008-07-14T18:29:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![billv](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bb73d2/32.png) [@billv](https://www.ruby-forum.com/u/billv)\
**Post date:** [July 14, 2008, 6:29pm UTC](https://www.ruby-forum.com/t/mongrel-freeze/143039/1 "2008-07-14T18:29:35Z")

</div>

Hi,

I have had trouble with mongrel freezing after a period of  
inactivity. Following the advice from the mongrel FAQ, I added:  
ActiveRecord::Base.verification\_timeout = 14400  
to my environment.rb file. Unfortunately, that registered a mongrel  
error:  
“uninitialized constant ActiveRecord (NameError)”

How do I overcome this one? I tried:  
require ActiveRecord::Base  
but that registered the same error, only for this line instead.

Thanks, and sorry for the newbie question.

---

<div class="post-metadata">

**Author:** ![billv](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bb73d2/32.png) [@billv](https://www.ruby-forum.com/u/billv)\
**Post date:** [July 14, 2008, 10:55pm UTC](https://www.ruby-forum.com/t/mongrel-freeze/143039/2 "2008-07-14T22:55:13Z")

</div>

I moved the statement to the config/environments/production.rb  
instead. Mongrel started up just fine. Now to see if it stops  
freezing.

Thanks.
