Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Ian Leitch's latest activity

Thursday, July 30 2009
2972 Mongrel does not properly release db connections was updated in Ruby on Rails
  • Ian Leitch
    Ian Leitch commented at 3:41 PM

    This is what I have in my after_initialize callback in environment.rb:

    module Rails
      class Initializer
        def prepare_dispatcher_with_connection_clearing
       ...
  • Ian Leitch
    Ian Leitch commented at 2:58 PM

    This is correct, however in my application atleast, clearing the connections inside after_initialize wasn't the solution as something after after_initialize in ...

Wednesday, July 29 2009
2972 Mongrel does not properly release db connections was updated in Ruby on Rails
  • Ian Leitch
    Ian Leitch commented at 9:49 PM

    I can't really comment on sessions and db connections as I use cookie based sessions.

    To clarify how Mongrel and ActiveRecord work together:

    Mongrel isn't respo...

  • Ian Leitch
    Ian Leitch commented at 5:14 PM

    I think I've identified a race condition here. Only a small portion of the Mongrel processing code is synchronized, so it's possible that whilst thread A has le...

  • Ian Leitch
    Ian Leitch commented at 4:33 PM

    I'm having a similar problem which is probably related. Each mongrel process will over time end up creating as many connections as the pool will allow. So 5 con...