Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > App getting bigger and bigger

Reply
Thread Tools

App getting bigger and bigger

 
 
Yannick Turgeon
Guest
Posts: n/a
 
      10-13-2003
Hello all,

I just make a program in perl. My first one in fact. Which use some WWW
packages to start a http session, log to a site, download some pages and treat
these data.

The problem I have now it's that while executing, my program is taking
more and more memory. What should I look for to solve this? Perl has a
garbagge collector so I did not worry freing anything. Should I?

The program is a endless loop (while(1)...). At each iteration it creates
objects inside the only function called:

Create my objects Obj
while(1){
Obj->CallMyFunction();
sleep(60);
}

I supposed every object and variable created inside CallMyFunction() were
freed from memory after quiting the function. Inside this function, I
create another type of object which has "Obj" has member variable. Could it
cause a problem. I do not store anything in Obj at each iteration. It has
its initial variables and they don't change.

Hope it's clear and thanks for your help.

Yannick
 
Reply With Quote
 
 
 
 
Yannick Turgeon
Guest
Posts: n/a
 
      10-14-2003
Forget about this.

One of the package I use was storing EVERY webpage I was downloading to
provide some other functionality. You can imagine!

Yannick

Le Mon, 13 Oct 2003 15:23:09 -0400, Yannick Turgeon a écrit*:

> Hello all,
>
> I just make a program in perl. My first one in fact. Which use some WWW
> packages to start a http session, log to a site, download some pages and treat
> these data.
>
> The problem I have now it's that while executing, my program is taking
> more and more memory. What should I look for to solve this? Perl has a
> garbagge collector so I did not worry freing anything. Should I?
>
> The program is a endless loop (while(1)...). At each iteration it creates
> objects inside the only function called:
>
> Create my objects Obj
> while(1){
> Obj->CallMyFunction();
> sleep(60);
> }
>
> I supposed every object and variable created inside CallMyFunction() were
> freed from memory after quiting the function. Inside this function, I
> create another type of object which has "Obj" has member variable. Could it
> cause a problem. I do not store anything in Obj at each iteration. It has
> its initial variables and they don't change.
>
> Hope it's clear and thanks for your help.
>
> Yannick


 
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
Its getting bigger now prashant.kumarr@gmail.com Cisco 2 06-04-2009 06:18 AM
Serialization file getting bigger and bigger on the same object yancheng.cheok@gmail.com Java 2 04-10-2007 09:26 AM
C++ coding standarts and how to structure "bigger" projects Mikkel christensen C++ 4 11-07-2004 11:04 PM
I have created a website "lookup" i dont think its gonna get bigger and fancyer than it already is but have a look Rahmi Acar C++ 0 04-20-2004 10:18 PM
Bigger image size and lower quality vs. Smaller image size and higher quality Desmond Digital Photography 5 09-27-2003 04:08 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57