[pypy-issue] [issue1257] Memory leak when using web.py
tracker at bugs.pypy.org
Sat Nov 24 12:25:29 CET 2012
Armin Rigo <armin.rigo at gmail.com> added the comment:
It looks like it's not a bug or a leak, but just a very very slow JIT start-up.
By running the process for long enough, RAM usage grows slowly from ~30MB to
89MB ("Resident size", Linux32), and at the same time the speed improves slowly
by a total factor of roughly 3x. It takes maybe 10 minutes(!) to reach the
maximum RAM usage and top speed. Afterwards, the memory usage doesn't grow past
89MB, even if I run it for one hour.
The extra ~60MB is taken by JIT code and associated data structures. I don't
exactly know why it is so big in this case. But note also that its size should
not depend on the quantity of real data that a real web server is handling, so
60MB is not that bad.
status: unread -> chatting
PyPy bug tracker <tracker at bugs.pypy.org>
More information about the pypy-issue