You could try forcing a garbage collection with something like
GC.start (I think). You could try doing that after each connection,
or after every N connections, if it takes too long.
Keep up to date with Rails on Twitter and This Week in Rails
Policies: Conduct, License, Maintenance, Security, Trademarks