[Mongrel] mongrel_rails service on windows incompatible with recent ruby builds?

Ralf Vitasek neongrau at gmail.com
Mon Sep 10 11:09:26 EDT 2007

i was suffering from a massive memory leak in my application. after
searching and testing for quite a while i finally found that it wasn't
my app that had a leak but the win32ole support that was used by the
ADO driver in sqlserver adapter.

the solution to fix the leak was to install ruby 1.8.5p52 or 1.8.6p36

but sadly as soon i install one of the fixed releases mongrel won't
start as service anymore.

the latest version i was able to run as a service is 1.8.5p35 but that
doesn't have the leak fixed.

"mongrel_rails start" will run the app in dev or production mode on
the console without problems.

when trying to start the service in mmc it fails with the message that
the service was started and that it stopped right away.

when running mongrel_service.exe with the "console" option:
C:\informer_rails>"c:/ruby/bin/mongrel_service.exe" console -e development -p 30
00 -a -l "log/mongrel.log" -P "log/mongrel.pid" -c "c:/informer_rails" -
t 0 -r "public" -n 1024
Mongrel Win32 Service, version 0.3.1
(c) 2006 The Mongrel development team.

Starting service 'single' in console mode, please wait...
Service is in running state.
Press Ctrl-C to stop it.

i see a ruby.exe for a second in the task manager that seems to die
right away. no log files are created.

i also wonder why it says "Mongrel Win32 Service, version 0.3.1"
because i have 0.3.2 installed. i tried uninstalling and then
reinstalling mongrel, mongrel_service and win32-service without any

and the error doesn't seem to come from win32-service as i'm able to
run an acts_as_ferret serving DRb without any problems with every ruby

please check the attached servicefb.log and mongrel_service.log
as i can't see anything wrong in those logs.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: servicefb.log
Url: http://rubyforge.org/pipermail/mongrel-users/attachments/20070910/4689b21f/attachment.pl 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mongrel_service.log
Url: http://rubyforge.org/pipermail/mongrel-users/attachments/20070910/4689b21f/attachment-0001.pl 

More information about the Mongrel-users mailing list