On Fri, Dec 14, 2012 at 9:06 AM, Joon-Kyu Park <
segfa...@gmail.com> wrote:
> Hi. I think there's a memory leak in gevent. I reproduced this via following
> code.
>
...
> As you can see there are a lot of green threads created.
> According to objgraph.most_common_types(), Python heap seems to be reclaimed
> after every threads are finished but the actual memory usage remains
> unchanged.
> I suspect that gevent.sleep() call in f() leaves an amount of memory in
> native (libevent side or something?) memory. Leak doesn't occur after
> commenting that line out.
> Of course there's no need for explicit GC call but I wanted to make sure
> that the memory to be recollected properly.
> Is this a bug, or I just misused it?
I don't get what the script is supposed to show and what is not right.
I'll take another look, if you could simplify it by
- removing 3rdparty packages, like objgraph and psutil
- making the script loop infinitely.
(Use ps/top to see that the memory is leaking.)
Thanks,
Denis.