Hi,

2015-09-14 8:59 GMT+02:00 于大伟 <dc...@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@python.org
> https://mail.python.org/mailman/listinfo/pypy-dev
>
>


-- 
Amaury Forgeot d'Arc
_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
https://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to