Velocity Reviews - Computer Hardware Reviews

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

Thread Tools

XML::Simple - memory leak?

Joe Casadonte
Posts: n/a

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

while (<IN>) {

next unless m{sampleResult};

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

$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.
Built 23:15:13 Dec 1 2002
perl -MXML::Simple -e "print $XML::Simple::VERSION"

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

Any help would be appreciated. Thanks!


Joe Casadonte Removed)

Llama Fresh Farms =>
Gay Media Resource List =>
Perl for Win32 =>
Emacs Stuff =>
Music CD Trading =>
Live Free, that's the message!
Reply With Quote

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