python slowdown after a longish time of running (garbage collector)
pyth at devel.trillke.net
Fri Aug 30 13:32:44 CEST 2002
Michal Vitecek wrote:
> hello all,
> i plan to use python for servers that should have pretty good
> throughput. however, after my test server runs for a longer time
> (constantly processing commands issued by clients) my measurements show
> that the speed of commands that it processes slowly decreases to a
> crawl. i suspect the problem is with the garbage collector.
> is it normal behaviour of python garbage collector? can i help it by
> deleting local variables in methods? is it better if i disable the
> garbage collector and run it only after a longish time?
You have do give *a lot* more detail for a meaningful answer. E.g.
What kind of server application is running?
How is the design, what are the involved network protocols?
how long do you run your applications? Is memory usage increasing?
The more specific your questions are the more likely you get
a good answer.
More information about the Python-list