Skip Menu |
 

This queue is for tickets about the RPC-XML CPAN distribution.

Report information
The Basics
Id: 41422
Status: open
Priority: 0/
Queue: RPC-XML

People
Owner: rjray [...] blackperl.com
Requestors: aleph [...] al3ph.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.76
Fixed in: (no value)



Subject: memory leak
Date: Thu, 04 Dec 2008 09:44:19 +0000
To: bug-RPC-XML [...] rt.cpan.org
From: Al <aleph [...] al3ph.org>
Download (untitled) / with headers
text/plain 267b
Hi, the following code loses 100K every time it`s called. my $cli = RPC::XML::Client->new('http://localhost:6666'); my $resp = $cli->send_request('blah'); The memory loss only occurs if the target server is not running. Module Version: 1.24 FC8 x86_64 cheers al
Download (untitled) / with headers
text/plain 618b
Does it leak memory every time send_request() is called? Or are you noticing that the process grows by 100K? Because that could be due to Perl internally allocating structures as the LWP::UserAgent and message-related libraries initialize. I have run the sample code you gave, having it repeat the request 10 times or more, and not even valgrind is showing that much leaked memory. Can you supply more details? -- """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" Randy J. Ray Silicon Valley Scale Modelers: http://www.svsm.org rjray@blackperl.com randy.j.ray@gmail.com
Subject: Re: [rt.cpan.org #41422] memory leak
Date: Thu, 10 Sep 2009 10:41:33 +0100
To: bug-RPC-XML [...] rt.cpan.org
From: aleph <aleph [...] al3ph.org>
Download (untitled) / with headers
text/plain 907b
Hmm this was a while back, I no longer have this environment available, but from memory the code looked more like sub send_request { my $cli = RPC::XML::Client->new('http://localhost:6666'); my $resp = $cli->send_request('blah'); } Every time the above function was called memory would be lost (only if remote server was not up). It`s possible this has been fixed by now. ta al Randy J Ray via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=41422 > > > Does it leak memory every time send_request() is called? Or are you > noticing that the process grows by 100K? Because that could be due to > Perl internally allocating structures as the LWP::UserAgent and > message-related libraries initialize. > > I have run the sample code you gave, having it repeat the request 10 > times or more, and not even valgrind is showing that much leaked memory. > Can you supply more details? >
Download (untitled) / with headers
text/plain 235b
I am taking a closer look at this. I can confirm that memory grows each time the request is made, though not by as much as the ticket initially reported. Still, it is growing. -- Randy J. Ray rjray@blackperl.com randy.j.ray@gmail.com
Subject: Re: [rt.cpan.org #41422] memory leak
Date: Tue, 23 Aug 2011 23:47:53 +0100
To: bug-RPC-XML [...] rt.cpan.org
From: aleph <aleph [...] al3ph.org>
Download (untitled) / with headers
text/plain 355b
Fair call, though it`s been 3 years since I spotted this one :) On 23/08/11 23:45, Randy J Ray via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=41422> > > I am taking a closer look at this. I can confirm that memory grows each > time the request is made, though not by as much as the ticket initially > reported. Still, it is growing. >
Download (untitled) / with headers
text/plain 518b
Yes, I was never able to find anything when I first looked at it, then it got lost in the shuffle when I had some health problems. Right now, I've been through the code with Devel::Leak and Devel::Cycle, and found nothing. I'm actually starting to think the leak might be in the LWP module rather than my code. I'm going to be doing some deeper debugging over the next few days to see if I can find it there, and report the bug to that package's maintainer. -- Randy J. Ray rjray@blackperl.com randy.j.ray@gmail.com
Download (untitled) / with headers
text/plain 290b
This memory leak is at the level of LWP::UserAgent or lower. I have marked this bug as dependent on ticket 70494, a ticket I have opened against the libwww-perl package. There is nothing I can do in RPC::XML to address this issue. -- Randy J. Ray rjray@blackperl.com randy.j.ray@gmail.com
Subject: Re: [rt.cpan.org #41422] Memory leak when client attempts to connect to non-existent server
Date: Fri, 26 Aug 2011 08:00:55 +0100
To: bug-RPC-XML [...] rt.cpan.org
From: aleph <aleph [...] al3ph.org>
Download (untitled) / with headers
text/plain 368b
Cheers for looking! On 26/08/11 02:47, Randy J Ray via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=41422> > > This memory leak is at the level of LWP::UserAgent or lower. I have > marked this bug as dependent on ticket 70494, a ticket I have opened > against the libwww-perl package. There is nothing I can do in RPC::XML > to address this issue. >


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.