Re: [CDBI] C::DBI Memory usage

Matt S Trout <dbix-class-uY5y5/[email protected]>
Newsgroups gmane.comp.lang.perl.modules.class-dbi
Message-ID <[email protected]>
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.