[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.python

Memory problem with threading

rewonka@gmail.com

1/16/2008 12:24:00 AM

Hi!

I made a string parser program, it has a main function and a working
thread class. When it is running in 24h non-stop, the memory run out.
I dont Know why. Do anybody know somekind of debugger that can i see
what is eating the memory? Maybe there is a list or value or
dictionary that is growing continually but i dont know which one.
Maybe there is a program for that kind of debugging, what can
monitoring the memory and values size in the memory. Or it is a sience
fiction :)

p.s.: sorry for my english
Rew
1 Answer

Clement

1/16/2008 7:47:00 AM

0

On Jan 16, 5:24 am, "rewo...@gmail.com" <rewo...@gmail.com> wrote:
> Hi!
>
> I made a string parser program, it has a main function and a working
> thread class. When it is running in 24h non-stop, the memory run out.
> I dont Know why. Do anybody know somekind of debugger that can i see
> what is eating the memory? Maybe there is a list or value or
> dictionary that is growing continually but i dont know which one.
> Maybe there is a program for that kind of debugging, what can
> monitoring the memory and values size in the memory. Or it is a sience
> fiction :)
>
> p.s.: sorry for my english
> Rew

Hi I got the same problem when i did my crawler..... the simple
soloution what i did is... created one therad at the start up time of
my program.. it will run all the time of the life of the program...
it's duty is frequently calling gc.college() function in garbage
collector package of python

http://arctrix.com/nas/...

i used it as temporary solution.... if any other way please
share...........

.......
Thanking you...
Clement
http://www.s...