V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
coolicer
V2EX  ›  Python

用 python 跑一个小脚本,要吃多少内存

  •  
  •   coolicer · 2015-08-03 13:48:25 +08:00 · 3375 次点击
    这是一个创建于 3181 天前的主题,其中的信息可能已经有所发展或是发生改变。
    我用node.js写了一个定时执行的小爬虫(就爬个内容然后发email),一开始内存占用大概是40多M,运行到现在15天,内存用了96M。用了pm2来跑
    6 条回复    2015-08-03 21:15:25 +08:00
    squid157
        1
    squid157  
       2015-08-03 15:44:57 +08:00 via iPhone
    你什么细节都不给 谁知道你要用多少RAM
    laotaitai
        2
    laotaitai  
       2015-08-03 19:44:41 +08:00   ❤️ 2
    从来没见过这么傻逼的问题提问方式! 真的! 从来没有!
    zhicheng
        3
    zhicheng  
       2015-08-03 19:50:53 +08:00 via Android
    占用内存大小和脚本大小不成比例关系。
    PythonAnswer
        4
    PythonAnswer  
       2015-08-03 21:03:18 +08:00
    用 node.js 跑一个小脚本,要吃多少内存

    我用python写了一个定时执行的小爬虫 ...
    fortunezhang
        5
    fortunezhang  
       2015-08-03 21:08:55 +08:00
    你能上个代码看看吗?
    ipconfiger
        6
    ipconfiger  
       2015-08-03 21:15:25 +08:00
    说明了要解决问题要先从学会如何提问开始
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3649 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 04:24 · PVG 12:24 · LAX 21:24 · JFK 00:24
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.