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
zzxworld
V2EX  ›  Python

uwsgi不能添加--limit-as配置

  •  
  •   zzxworld · 2012-04-26 13:17:31 +08:00 · 5455 次点击
    这是一个创建于 4376 天前的主题,其中的信息可能已经有所发展或是发生改变。
    使用django+nginx+uwsgi部署项目,uwsgi的启动命令中不能添加--limit-as配置,添加后uwsgi就无法启动,不添加就可以正常启动。
    下面是添加 --limit-as=32 后运行时的错误消息:
    *** Starting uWSGI 1.1.2 (64bit) on [Thu Apr 26 13:12:43 2012] ***
    compiled with version: 4.6.1 on 26 April 2012 10:09:48
    current working directory: /home/zzxworld/repository/blog
    writing pidfile to /var/run/uwsgi/blog/uwsgi.pid
    detected binary path: /usr/local/bin/uwsgi
    *** WARNING: you are running uWSGI without its master process manager ***
    limiting address space of processes...
    your process address space limit is 33554432 bytes (32 MB)
    your memory page size is 4096 bytes
    detected max file descriptor number: 1024
    lock engine: pthread mutexes
    !!! uWSGI process 6754 got Segmentation Fault !!!
    *** backtrace of 6754 ***
    *** end of backtrace ***

    盼各位大牛正解。。
    3 条回复    1970-01-01 08:00:00 +08:00
    clino
        1
    clino  
       2012-04-26 14:16:56 +08:00   ❤️ 1
    "uWSGI process 6754 got Segmentation Fault"进程都崩溃了,把32改大点还是会这样吗?
    要不再换 uwsgi 的更新版本或者稳定的旧版本看看吧.
    我之前用 1.x 也出了些问题,后来退回 0.9.x 的就跑得好好的
    zzxworld
        2
    zzxworld  
    OP
       2012-04-26 14:22:04 +08:00
    @clino 我用的是最新的 1.1.2,--limit-as不论改大改小都一样,不能加这个参数。
    clino
        3
    clino  
       2012-04-26 14:44:01 +08:00
    @zzxworld 那你试试 1.2 rc 的版本好了,呵呵 http://projects.unbit.it/hg/uwsgi/tags
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2822 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 02:29 · PVG 10:29 · LAX 19:29 · JFK 22:29
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.