[CDBI] C::DBI Memory usage

Matt S Trout dbix-class at trout.me.uk
Wed May 24 13:43:14 BST 2006


Aaron Trevena wrote:
> Hi All,
> 
> I'm working on scheduling daemon in perl, it uses C::DBI to handle
> DB/Object Persistence, etc as you'd expect.
> 
> Unfortunately I'm having issues with the ammount of memory it uses
> after 24 hours of running.

Oh, hell. Does it do a lot of queries that are different every time and 
almost never lose its database connection? If so, prepare_cached may be 
the culprit - try $dbh->{CachedKids} = {}; and see if the memory usage 
comes back down.



More information about the ClassDBI mailing list