in reply to Memory Overflow

A long shot, but...

What version of DBD::mysql are you using? If you don't know how to check, do this at your nearest command prompt:

perl -MDBD::mysql -le'print $DBD::mysql::VERSION'

I recently had a problem with a memory leak, which was traced to DBD::mysql version 2.9002. I installed 2.9003 and the problem went away.

--
3dan