Skip Menu |

This queue is for tickets about the SOAP-Lite CPAN distribution.

Report information
The Basics
Id: 55959
Status: resolved
Priority: 0/
Queue: SOAP-Lite

People
Owner: Nobody in particular
Requestors: franck [...] debian.org
Cc:
AdminCc:

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



Subject: high memory consumption
Date: Fri, 26 Mar 2010 10:55:17 +0100
To: bug-SOAP-Lite [...] rt.cpan.org
From: Franck Joncourt <franck [...] debian.org>
Hi, Please find below a bug report against SOAP::Lite on Debian. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=511372 Here is the test case: I started to rewrite my script so it uses Devscripts::Debbugs directly, and since the methods provided by that module don't do much but a couple of calls to SOAP::Lite I've determined that the high memory consumption isn't on devscripts' side, but on libsoap-lite-perl's. Reproduce code: 8<------------------------------------>8 use SOAP::Lite; my $soap = SOAP::Lite->uri('Debbugs/SOAP')->proxy( 'http://bugs.debian.org/cgi-bin/soap.cgi'); $soap->get_status($soap->get_bugs(package=>'wnpp')->result()); 8<------------------------------------>8 Regards, -- Franck Joncourt
Download signature.asc
application/pgp-signature 198b

Message body not shown because it is not plain text.

Subject: Re: [rt.cpan.org #55959] high memory consumption
Date: Fri, 26 Mar 2010 17:29:20 +0100
To: bug-SOAP-Lite [...] rt.cpan.org
From: Martin Kutter <martin.kutter [...] fen-net.de>
Hi, is there a leak (e.g. a increase of memory consumption in subsequent calls) or does SOAP::Lite just require more memory than expected? Martin Show quoted text
> Hi, > > Please find below a bug report against SOAP::Lite on Debian. > > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=511372 > > Here is the test case: > > I started to rewrite my script so it uses Devscripts::Debbugs directly, > and since the methods provided by that module don't do much but a couple > of calls to SOAP::Lite I've determined that the high memory consumption > isn't on devscripts' side, but on libsoap-lite-perl's. > > Reproduce code: > 8<------------------------------------>8 > use SOAP::Lite; > > my $soap = SOAP::Lite->uri('Debbugs/SOAP')->proxy( > 'http://bugs.debian.org/cgi-bin/soap.cgi'); > > $soap->get_status($soap->get_bugs(package=>'wnpp')->result()); > 8<------------------------------------>8 > > Regards, >
Hi, "I think SOAP::Lite needs too much memory" is no indication of a leak - just a indication of high memory usage. From man perldebguts: "Perl is a profligate wastrel when it comes to memory use. There is a saying that to estimate memory usage of Perl, assume a reasonable algorithm for memory allocation, multiply that estimate by 10, and while you still may miss the mark, at least you won't be quite so astonished. This is not absolutely true, but may provide a good grasp of what happens." 130MB actually don't make me astonished. SOAP::Lite creates the SOAP request from, and parses the SOAP response into quite expensive memory structures. It simply needs much memory. Of course it could be changed (which software could not?) - but as it not an error, I won't change this. Martin