# WEBrick freezes overnight

**URL:** <https://www.ruby-forum.com/t/webrick-freezes-overnight/88942>\
**Category:** Rails\
**Created:** [March 15, 2007, 6:56pm UTC](https://www.ruby-forum.com/t/webrick-freezes-overnight/88942 "2007-03-15T18:56:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![plambert](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/9d8465/32.png) [@plambert](https://www.ruby-forum.com/u/plambert)\
**Post date:** [March 15, 2007, 6:56pm UTC](https://www.ruby-forum.com/t/webrick-freezes-overnight/88942/1 "2007-03-15T18:56:05Z")

</div>

Each morning when I return to work, I find that my WEBrick server has  
stopped working. The process is still running, but when I try to  
connect to it with a web browser, the browser doesn’t get any response  
back. Usually when this happens I cannot control-c the process to  
shut it down, and not even “kill” works-- I have to get rid of it with  
kill -9. I then restart it and it runs fine for the rest of the day.

Is this a known problem with WEBrick? Or does it reflect some  
configuration problem?

I am running WEBrick on RedHat Enterprise Linux.

Thanks,  
–Paul

---

<div class="post-metadata">

**Author:** ![plambert](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/9d8465/32.png) [@plambert](https://www.ruby-forum.com/u/plambert)\
**Post date:** [March 15, 2007, 7:35pm UTC](https://www.ruby-forum.com/t/webrick-freezes-overnight/88942/2 "2007-03-15T19:35:10Z")

</div>

Yeah, it’ll do that.  
Most folks use Mongrel now.

sudo gem install mongrel

Recent versions of Rails (1.2.x) use Mongrel when you run script\server  
if  
you have it installed.

Otherwise, start it with

mongrel\_rails start -d

That runs it in the background on port 3000 in dev mode.

Stop it with

mongrel\_rails stop

---

<div class="post-metadata">

**Author:** ![plambert](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/9d8465/32.png) [@plambert](https://www.ruby-forum.com/u/plambert)\
**Post date:** [March 16, 2007, 3:25am UTC](https://www.ruby-forum.com/t/webrick-freezes-overnight/88942/3 "2007-03-16T03:25:13Z")

</div>

A lot of current documents, books etc. about Rails clearly state that  
WEBrick is to be used only for development and testing, and never for  
production. Perhaps you missed that, Paul.

Like Brian said, that’s why Mongrel was created.

Cheers,

Luciano
