[pypy-dev] pypy 2.6 memory leak bug!! very importent
Amaury Forgeot d'Arc
amauryfa at gmail.com
Mon Sep 14 10:50:59 CEST 2015
Hi,
2015-09-14 8:59 GMT+02:00 于大伟 <dcp2k at 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-related-to-garbage-collection-strategies
The solution is often to close resources explicitly or use "with" blocks.
>
>
>
>
>
> _______________________________________________
> pypy-dev mailing list
> pypy-dev at python.org
> https://mail.python.org/mailman/listinfo/pypy-dev
>
>
--
Amaury Forgeot d'Arc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20150914/e4c2b6d9/attachment.html>
More information about the pypy-dev
mailing list