I've added (to my unicorn conf):

before_fork do |server, worker|
  DataObjects::Pooling.pools.each do |pool|
     pool.dispose
  end
end

And this seems to have solved my MySQL memory problem. Thanks to:
http://blog.antarestrader.com/posts/155

On Aug 22, 2:32 am, arbales <[email protected]> wrote:
> I'm considering moving my various Sinatra/DataMapper-powered
> applications to nginx+unicorn from nginx+passenger, and I'm wondering
> what I should specify (if anything) in Unicorns before and after_fork
> hooks.
>
> Thanks
> arb

-- 
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en.

Reply via email to