Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I am not a PERL expert hence i need someones help. I have been asked to see memory leak in our application. I found massive memory leak in our application. Following is scenario:
Our application is using Perl TK too. We have certain forms which are generated dynamically using all infor regarding test box/lenth etc. from configuration file. It will be generated only when you try to visit those pages. When first time user visits these pages on an order it takes aprox 14 MB. Then when i closed the order opened new created new order with same data it increased by 6 MB aprox and keep adding by 6 MB for all subsequent orders. (Data for each forms are stored in hash.)
I am not able to understand why it's happenning because whenever i come out of order it returns from all sub routines. Therefore all hash should be freed up, created to store data of order, for next time usage. As i read comments about memory leak, says that laxical varible are freed for next time usage (for optimization). But in my case it is not freed up rather keep increasing everytime.
I will appreciate your cooperastion.
Thanks,
Raj.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Memory Leak
by Zaxo (Archbishop) on Oct 10, 2002 at 23:48 UTC | |
|
Re: Memory Leak
by l2kashe (Deacon) on Oct 11, 2002 at 03:03 UTC | |
|
Re: Memory Leak
by ff (Hermit) on Oct 11, 2002 at 03:12 UTC |