[Rails] Webrick in production?

Justin Forder justin at justinforder.me.uk
Sat Mar 4 12:14:31 GMT 2006


Ben Munat wrote:
> Eric Hodel wrote:
>> On Feb 27, 2006, at 9:55 PM, Ben Munat wrote:
>>> So what about the mythical "mutex on each request" that WEBrick has?
>>
>> I don't know about Rails, but no such thing exists in WEBrick.  (Note  
>> that I'm not using WEBrick to serve Rails requests, I'm using it for  
>> "image hits".)
> 
> Duh... helps if I read more carefully. The passage in AWDWR is: [WEBrick 
> is] not a particulary attractive approach for heavy-duty use. One of the 
> reasons is the lack of thread safety in *ActionPack* (emphasis mine), 
> which forces WEBrick to place a mutex at the gate of dynamic requests..."
> 
> So, it is a problem in rails...... on the other hand, this is a rails 
> list so I can see how I'd be thinking about that. :-)
> 
> Oh and I'm mostly interested in mongrel as a "container" (ala a Java 
> servlet container) for my rails apps... I'm starting to see how that's 
> not totally essential, but I think it'll be nice to have as an option.

As I understand it, the mutex is in Rails, and it affects Mongrel in 
exactly the same way that it affects WEBrick.

   Justin


More information about the Rails mailing list