Memory problem with threading

R

rewonka

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
 
C

Clement

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/python/gc/

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

.......
Thanking you...
Clement
http://www.squzer.com/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top