Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > help!! perl eats up my memory!!

Reply
Thread Tools

help!! perl eats up my memory!!

 
 
Elhanan Maayan
Guest
Posts: n/a
 
      05-13-2004
hi..
i've written small program to test soap attachments against java axis:
it should run on a loop until it receive a response from the servie to
stop
use strict;
use SOAP::Lite;
use SOAP::MIME;
use MIME::Entity 50.01; #private module
use IO:ir;
my $id=1;
my @files =glob "*.tiff";
my $count=0;
my $i=0;
my $index=0;
my $total=@files;
my $r=0;

do{
$index=$i % $total;
{
my $ent = MIME::Entity->build( (Path=> $files[$index],Id=> $id) );
my $som = SOAP::Lite
# ->readable(1)
->uri("urn:Testme")
->parts(($ent) )
->proxy("http://localhost:8080/axis/Testme.jws")
->echo(SOAP:ata->name("source")->attr( {'href'=>$id} ));
$r=$som->result;
}
$i++;
}while($r!=-99);
print "Total: $i";

when i looked at the task manager i kept seeing how the memory usage
is growing and growing, it was only released when the script ended..
any way to improve this?
i tried placing inner brackets inside the loop in order to force that
my variables go out of scope (didn't worked off course)..
 
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
Perl eats alot of memory melco Perl Misc 2 08-08-2006 03:20 PM
Perl eats alot of memory melco Perl Misc 0 08-08-2006 02:00 PM
expression eats newline Gerard Oberle Perl 3 08-01-2003 05:06 PM
Re: ASP.NET eats memory too much George Ter-Saakov ASP .Net 0 06-30-2003 03:02 PM
Re: ASP.NET eats memory too much Kevin Spencer ASP .Net 0 06-30-2003 03:01 PM



Advertisments