memory leaks in perl

Sergey Kuznetsov tlug-9a/WvBvX2Qpg9hUCZPvPmw at public.gmane.org
Fri Apr 30 21:51:26 UTC 2004


On April 30, 2004 07:42 pm, Zbigniew Koziol wrote:
> I have an application that probably does just that: it takes more and more
> memory with time. It is perl. Fortunately, not on Linux but on Solaris.
>
> Is there a way to trace these things, find out what is wrong with perl
> script?
>

    Does it use the hashes?
    If so, is there any unique or random keys?
    If random, probably you are not cleaning unused hash entries, 
you can do it like this:
    delete $hash{$key}
or
    undef $hash{$key}

    Perl quite gentle manage the memory. 

> zb.
> --
> The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
> TLUG requests: Linux topics, No HTML, wrap text below 80 columns
> How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml

-- 
All the Best!
Sergey.
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list