pypy 2.6 memory leak bug!! very importent
hi, i use pypy 2.6 with BeautifulSoup module and pymongo. i make a spider with the pypy. when i run pypy ,i found a problem ,the pypy use memory higher then 6GB when i run pypy at once , the pypy use only 240mb memory! the screenshot in the attachment!
Hi, 2015-09-14 8:59 GMT+02:00 于大伟 <dcp2k@163.com>:
hi, i use pypy 2.6 with BeautifulSoup module and pymongo. i make a spider with the pypy. when i run pypy ,i found a problem ,the pypy use memory higher then 6GB when i run pypy at once , the pypy use only 240mb memory! the screenshot in the attachment!
This might be because of the differences in memory management. Unlike CPython, PyPy does not free resources as soon as the last reference to an object goes away. See http://pypy.readthedocs.org/en/latest/cpython_differences.html#differences-r... The solution is often to close resources explicitly or use "with" blocks.
_______________________________________________ pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev
-- Amaury Forgeot d'Arc
If you can show as a sample code it will be better. On Mon, Sep 14, 2015 at 1:29 PM, 于大伟 <dcp2k@163.com> wrote:
hi, i use pypy 2.6 with BeautifulSoup module and pymongo. i make a spider with the pypy. when i run pypy ,i found a problem ,the pypy use memory higher then 6GB when i run pypy at once , the pypy use only 240mb memory! the screenshot in the attachment!
_______________________________________________ pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev
participants (3)
-
Amaury Forgeot d'Arc
-
Phyo Arkar
-
于大伟