[pypy-issue] [issue1282] Too much memory consumed (looks like severe memory leak)

Sergey Kishchenko tracker at bugs.pypy.org
Mon Mar 18 20:18:51 CET 2013

Sergey Kishchenko <voidwrk at gmail.com> added the comment:

It can be two separate issues as far as I can see. Using try..except in
generators makes pypy use a lot of memory (70 mb just for arigo's example on my
box). But it still doesn't consume more than 70 mb so I can GC is doing fine here.

On the other hand, having nesting generator calls from the arigo's example is
what's taking pypy on it's knees. On my box

def gen1(n):
    if n > 0:
        g = gen1(n-1)
    yield 5
while 1:

consumes 1.5gb RAM in seconds and keeps eating memory until stopped. The same
script started through pyinteractive.py uses only 72 MB so I suppose there is
the issue with the translated code/translator

nosy: +tilarids

PyPy bug tracker <tracker at bugs.pypy.org>

More information about the pypy-issue mailing list