Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > XML::Simple - memory leak?

Reply
Thread Tools

XML::Simple - memory leak?

 
 
Joe Casadonte
Guest
Posts: n/a
 
      06-21-2004

I've got a simple script, that consumes enormous amounts of memory:

while (<IN>) {
chomp;

next unless m{sampleResult};

my($xml) = eval { XMLin($_, %SIMPLE_OPTS); };
if ($@) {
warn qq(Malformed XML - $fname: $. - $@\n);
next;
}

$xml = undef;
}

close IN;

Underlying XML::Simple is XML::Sax::Expat, and of course it's possible
(probable?) that the problems lies somewhere below XML::Simple. It
happens with or without the eval, so that's not an issue.

===
This is perl, v5.8.0 built for MSWin32-x86-multi-thread
(with 1 registered patch, see perl -V for more detail)

Copyright 1987-2002, Larry Wall

Binary build 804 provided by ActiveState Corp. http://www.ActiveState.com
Built 23:15:13 Dec 1 2002
===
perl -MXML::Simple -e "print $XML::Simple::VERSION"
1.06

(that's the latest version available via 'ppm' -- maybe that's my issue?)
===

Any help would be appreciated. Thanks!

--
Regards,

joe
Joe Casadonte
http://www.velocityreviews.com/forums/(E-Mail Removed)

------------------------------------------------------------------------------
Llama Fresh Farms => http://www.northbound-train.com
Gay Media Resource List => http://www.northbound-train.com/gaymedia.html
Perl for Win32 => http://www.northbound-train.com/perlwin32.html
Emacs Stuff => http://www.northbound-train.com/emacs.html
Music CD Trading => http://www.northbound-train.com/cdr.html
------------------------------------------------------------------------------
Live Free, that's the message!
------------------------------------------------------------------------------
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Patriot Memory PDC1G5600ELK Memory Review Silverstrand Front Page News 0 09-07-2005 02:24 AM
Differences between Sony Memory Stick & memory Stick Pro vs Memory Stick Duo? zxcvar Digital Photography 3 11-28-2004 10:48 PM
RAM Memory or virual memory Julián Sanz García ASP .Net 4 11-12-2004 06:25 PM
GC does not release memory...memory keeps growing!!! Mahesh Prasad ASP .Net 1 02-22-2004 08:40 AM
AspNet Process Memory Issue on Win2k Server - Peformance is fine - Memory usuage doesn't stop growing Cy Huckaba ASP .Net 1 06-26-2003 04:00 AM



Advertisments