# Mongrel/mongrel\_rails windows question

**URL:** <https://www.ruby-forum.com/t/mongrel-mongrel-rails-windows-question/203736>\
**Category:** Mongrel\
**Created:** [February 25, 2011, 11:23pm UTC](https://www.ruby-forum.com/t/mongrel-mongrel-rails-windows-question/203736 "2011-02-25T23:23:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [February 25, 2011, 11:23pm UTC](https://www.ruby-forum.com/t/mongrel-mongrel-rails-windows-question/203736/1 "2011-02-25T23:23:34Z")

</div>

Hello!

I’m just wondering if anyone has any recommendations for running  
mongrel/mongrel\_service under Windows (Client requires Windows Server  
2008, SQL Server 2008, IIS7, no budget for a \*nix box of any kind). I  
have a working setup, but wondering if anyone has any further insight.

Current working setup:

Ruby 1.87 (via [rubyinstaller.org](http://rubyinstaller.org))  
Rail 2.3.11  
mongrel 1.1.15 (mingw32)  
mongrel\_service 0.4.0

I’ll be looking at using the ARR features of IIS7 to do some load  
balancing between a few instances of mongrel running on different ports  
on the same box.

I have read a lot of posts from people discussing troubles in getting  
Ruby 1.92 for windows working with mongrel 1.1.20pre and  
mongrel\_service. Does anyone have a working setup of this and is it  
worth fighting for?

Russ

---

<div class="post-metadata">

**Author:** ![rjerickson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/71c47a/32.png) [@rjerickson](https://www.ruby-forum.com/u/rjerickson)\
**Post date:** [March 3, 2011, 2:29am UTC](https://www.ruby-forum.com/t/mongrel-mongrel-rails-windows-question/203736/2 "2011-03-03T02:29:01Z")

</div>

On Fri, Feb 25, 2011 at 7:23 PM, Russ E. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Hello!

Hello Russ!

Sorry for the long delay in the reply.

> mongrel\_service 0.4.0

With the requirement of using Rails 2.3.11 or even going to Rails 3, I  
will recommend avoid mongrel in this case.

There are some reports of multiple cookies issues that haven’t been  
addressed due the inability to reproduce them or provide concrete test  
cases.

I’ve suggested someone port mongrel\_service to provide the same  
support for Thin, which could be pretty trivial, but noone stepped up.

With that you should be able to setup multiple services in different  
ports and then make the service dependent on IIS or TCPIP service so  
the automatic startup do not affect.

Another point, completely unrelated to mongrel and mongrel\_service is  
ensure your server have Ruby executable in the DEP exclude list.

More details at this entry of RubyInstaller troubleshooting:

> **[Troubleshooting](https://github.com/oneclick/rubyinstaller/wiki/Troubleshooting#dep_segfault)**
>
> RubyInstaller for Windows - Build recipes. Contribute to oneclick/rubyinstaller development by creating an account on GitHub.

> I’ll be looking at using the ARR features of IIS7 to do some load  
> balancing between a few instances of mongrel running on different ports  
> on the same box.

Sounds good, I’ve done the same approach in the past.

> I have read a lot of posts from people discussing troubles in getting  
> Ruby 1.92 for windows working with mongrel 1.1.20pre and  
> mongrel\_service. Does anyone have a working setup of this and is it  
> worth fighting for?

1.9.2 has some startup performance issues on Windows. starting a Rails  
application can take way longer than 1.8.7, but then request  
performance on production mode is good and pretty much up-par Linux in  
this area.

But, mongrel 1.2.0.pre is another story. I’ve mentioned the cookie  
issue above, which could be problematic.

## Again, sorry for the long delay in my reply and hope these answers help you out.

## Luis L. AREA 17

Perfection in design is achieved not when there is nothing more to add,  
but rather when there is nothing more to take away.  
Antoine de Saint-Exupry
