[xml/sgml-pkgs] Bug#277071: marked as done (libxml-parser-perl in conjunction with libsoap-lite-perl "High memory usage" )

Debian Bug Tracking System owner@bugs.debian.org
Fri, 05 Nov 2004 20:03:12 -0800


Your message dated Fri, 5 Nov 2004 20:21:04 -0600
with message-id <20041106022104.GD8713@sbcglobal.net>
and subject line Bug#277071: libxml-parser-perl in conjunction with libsoap-lite-perl "High memory usage"
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 18 Oct 2004 11:20:05 +0000
>From markus.werner@wobcom.de Mon Oct 18 04:20:05 2004
Return-path: <markus.werner@wobcom.de>
Received: from gluck.debian.org [192.25.206.10] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1CJVYW-0003U2-00; Mon, 18 Oct 2004 04:20:00 -0700
Received: from mail1.wobline.de [62.176.224.74] 
	by gluck.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1CJVY3-0001kG-00; Mon, 18 Oct 2004 05:19:32 -0600
Received: from picasso.wobcom.de ([62.176.224.140])
	by mail1.wobline.de (8.12.3/8.12.3/sh-2004032201) with ESMTP id i9IBIkWm023352
	for <submit@bugs.debian.org>; Mon, 18 Oct 2004 13:18:46 +0200
From: Markus Werner <markus.werner@wobcom.de>
Organization: Wobcom GmbH
To: submit@bugs.debian.org
Subject: libxml-parser-perl in conjunction with libsoap-lite-perl "High memory usage" 
Date: Mon, 18 Oct 2004 13:18:16 +0200
User-Agent: KMail/1.6.2
MIME-Version: 1.0
Content-Disposition: inline
Content-Type: text/plain;
  charset="utf-8"
Content-Transfer-Encoding: 7bit
Message-Id: <200410181318.16267.markus.werner@wobcom.de>
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-7.0 required=4.0 tests=BAYES_01,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

Package: libxml-parser-perl 
Version:  2.30-4  

Hi,


I'm using SOAP::Lite to transfer some data over the net. 
SOAP::Lite use XML:Parser:Expat.
With XML::Parser:Expat (Version 2.30) you get a high memory usage if you 
transfer datastructures that contains  some thing like this  "1 ::some thing:
\n" . In XML::Parser:Expat (Version 2.34) the problem doesn't exists any 
more. ( For test reasons I just exchanged Expat.pm v2.30 to v2.34 and the bug 
vanished).


Maybe the Bug isn't in the libxml-parser-perl by it self. Maybe it's a bug in 
IO::Handle or some different Module. I saw v 2.34 removed IO::Handle.


I suggest to upgrade to v2.34.

with kind regards

Markus Werner


Systeminformation (Woody)
---snip
libxml-parser-perl 2.30-4         Perl module for parsing XML files
libsoap-lite-p 0.55-1                Perl5 modules for client and server 
----snap





testprogramms
############
Server usage: Just call ./soaps

Client usage: ./soapc  "nr of lines" [high]
I suggest using 2000 lines (About 40 MB mem usage) with the option high 
argument. If you don't use high, erverything works fine.

----snip soapc
#!/usr/bin/perl


#use strict;
#use warnings;


use SOAP::Lite;

my @data;
for ( my $i = 0 ;  $i < $ARGV[0];  $i++) {
        if ( $ARGV[1] eq 'high') {
                #Mem usage: High
                push(@data,"$i ::some thing:\n");
        }
        else {
                # Mem usage: OK
                push(@data,"$i :some thing:\n");
        }
}

my $data = join('', @data);

my $rc = SOAP::Lite     ->uri("urn:MyServer")
                        ->proxy('tcp://localhost:12000')
                        ->myprint($data)
                        ->result;


-----snap

---snip soaps
!/usr/bin/perl


use strict;
use warnings;


use SOAP::Transport::TCP;



SOAP::Transport::TCP::Server    ->new(
                                        LocalAddr => 'localhost',
                                        LocalPort => 12000,
                                        Listen => 5, Reuse => 1)
                                ->dispatch_to("MyServer")
                                ->handle;

package MyServer;


sub myprint {
        my ($self,$data) = @_;

        print $data ;
}

---snap



---------------------------------------
Received: (at 277071-done) by bugs.debian.org; 6 Nov 2004 02:21:09 +0000
>From ardo@sbcglobal.net Fri Nov 05 18:21:09 2004
Return-path: <ardo@sbcglobal.net>
Received: from smtp812.mail.sc5.yahoo.com [66.163.170.82] 
	by spohr.debian.org with smtp (Exim 3.35 1 (Debian))
	id 1CQGCT-0006jW-00; Fri, 05 Nov 2004 18:21:09 -0800
Received: from unknown (HELO gondor.middle-earth) (ardo@sbcglobal.net@69.209.241.78 with plain)
  by smtp812.mail.sc5.yahoo.com with SMTP; 6 Nov 2004 02:21:05 -0000
Received: from ardo by gondor.middle-earth with local (Exim 3.36 #1 (Debian))
	id 1CQGCO-0003GL-00; Fri, 05 Nov 2004 20:21:04 -0600
Date: Fri, 5 Nov 2004 20:21:04 -0600
From: Ardo van Rangelrooij <ardo@debian.org>
To: Markus Werner <markus.werner@wobcom.de>, 277071-done@bugs.debian.org
Subject: Re: Bug#277071: libxml-parser-perl in conjunction with libsoap-lite-perl "High memory usage"
Message-ID: <20041106022104.GD8713@sbcglobal.net>
References: <200410181318.16267.markus.werner@wobcom.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <200410181318.16267.markus.werner@wobcom.de>
User-Agent: Mutt/1.5.6+20040907i
Sender: Ardo van Rangelrooij <ardo@sbcglobal.net>
Delivered-To: 277071-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

Hi,

Given the fact that you mention version 2.30 I'm assuming you're running
woody.  In sarge and sid we already have version 2.34.

Thanks,
Ardo

Markus Werner (markus.werner@wobcom.de) wrote:
> Package: libxml-parser-perl 
> Version:  2.30-4  
> 
> Hi,
> 
> 
> I'm using SOAP::Lite to transfer some data over the net. 
> SOAP::Lite use XML:Parser:Expat.
> With XML::Parser:Expat (Version 2.30) you get a high memory usage if you 
> transfer datastructures that contains  some thing like this  "1 ::some thing:
> \n" . In XML::Parser:Expat (Version 2.34) the problem doesn't exists any 
> more. ( For test reasons I just exchanged Expat.pm v2.30 to v2.34 and the bug 
> vanished).
> 
> 
> Maybe the Bug isn't in the libxml-parser-perl by it self. Maybe it's a bug in 
> IO::Handle or some different Module. I saw v 2.34 removed IO::Handle.
> 
> 
> I suggest to upgrade to v2.34.
> 
> with kind regards
> 
> Markus Werner
-- 
Ardo van Rangelrooij                                     Debian XML/SGML Group
<ardo@debian.org>              <debian-xml-sgml-devel@lists.alioth.debian.org>
http://people.debian.org/~ardo/      http://debian-xml-sgml.alioth.debian.org/