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

2012-04-26 13:17:31 +08:00
 zzxworld
使用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 ***

盼各位大牛正解。。
5461 次点击
所在节点    Python
3 条回复
clino
2012-04-26 14:16:56 +08:00
"uWSGI process 6754 got Segmentation Fault"进程都崩溃了,把32改大点还是会这样吗?
要不再换 uwsgi 的更新版本或者稳定的旧版本看看吧.
我之前用 1.x 也出了些问题,后来退回 0.9.x 的就跑得好好的
zzxworld
2012-04-26 14:22:04 +08:00
@clino 我用的是最新的 1.1.2,--limit-as不论改大改小都一样,不能加这个参数。
clino
2012-04-26 14:44:01 +08:00
@zzxworld 那你试试 1.2 rc 的版本好了,呵呵 http://projects.unbit.it/hg/uwsgi/tags

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/33652

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX