alierak: (Default)
alierak ([personal profile] alierak) wrote in [site community profile] dw_dev2013-07-15 09:37 am
Entry tags:

Still a memory leak

I previously noted an apparent memory leak in several workers under Perl 5.14.2. We upgraded the Encode module because it had a known memory leak bug and seemed relevant, and that did actually slow down the memory leak somewhat. However, I now need help brainstorming what could still be causing this. The affected workers seem to be synsuck, send-email, and resolve-extacct, so I've set cron jobs to restart those every so often.

Honestly, what can resolve-extacct be doing that causes it to grow to 9GB in size over the course of a week? We will probably have to resort to profiling memory usage to figure this one out.
pauamma: Cartooney crab wearing hot pink and acid green facemask holding drink with straw (Default)

[personal profile] pauamma 2013-07-15 05:12 pm (UTC)(link)
Honestly, what can resolve-extacct be doing that causes it to grow to 9GB in size over the course of a week?
Semirandom guess: DW::External::Userinfo uses a process cache somewhere that's never cleared.
dreamatdrew: An orange leopard gecko half hiding behind the leaf of a 'lucky bamboo' plant, looking directly at you. (Default)

[personal profile] dreamatdrew 2013-07-15 07:15 pm (UTC)(link)
OK, that is a wicked odd set of processes to be memoryhogging. And I think the only thing they have in common is that they touch the user db. Any objections to me trying to unspool this from the outside?
pauamma: Cartooney crab wearing hot pink and acid green facemask holding drink with straw (Default)

[personal profile] pauamma 2013-07-16 09:54 am (UTC)(link)
ESN uses TheSchwartz. resolve-extacct uses Gearman. What do the other memory hogs use?
pauamma: Cartooney crab wearing hot pink and acid green facemask holding drink with straw (Default)

[personal profile] pauamma 2013-07-20 07:30 am (UTC)(link)
Time to test the patch at https://rt.cpan.org/Ticket/Attachment/1237442/654131/net-dns-0.72-mem-leak.patch ? (Dunno what timezone rt.cpan uses, so it's possible the patch came after you posted your comment.)