On 25.05.2007 16:27, Sebastian probst Eide wrote: > Well, never mind... it stops "leaking" after a while. When it is at > about the double size of what it started out at. The first version I run > paused one second between each run so I didn't realize that till after I > had posted my previous post. When removing the "sleep 1" (not in the > source code I posted) I realized that the process doesn't consume more > memory when it has reached about 6mb. IIRC DBI also supports the block form for opening and closing, so you should rather do DBI.connect("DBI:Mysql:test:localhost", "root", "") do |dbh| ... end robert