Python server locks up

Terry Reedy tjreedy at udel.edu
Fri Sep 11 14:02:06 EDT 2009


sturlamolden wrote:
> On 9 Sep, 22:28, Zac Burns <zac... at gmail.com> wrote:
> 
>> Theories:
>>    Python is resizing the large dictionary
>>    Python is garbage collecting
> 
> Python uses reference counting, not a generational GC like Java.

The CPython implementation, that is. Jython, built on top of Java, uses 
Java's GC.  Ditto for IronPython implementation. PyPY may allow some choice.

  A
> Python object is  destroyed when the refcount drops to 0. The GC only
> collects cyclic references. If you create none, there are no GC delays
> (you can in fact safely turn the GC off). Python does not share Java's
> nasty habit of having long GC delays.
> 




More information about the Python-list mailing list