在shell中,启动并与node.js
进程通信的python
代码工作正常:
> from subprocess import *
> js = "(function(m) { console.log(m) })('hello world')"
> (out,err) = Popen(["node"], stdin=PIPE, stdout=PIPE, stderr=PIPE, shell=False).communicate(js)
> out
"hello world\n"
但是当我在uwsgi中运行相同的代码时,我却在err
中得到了这个:
'FATAL ERROR: v8::Context::New() V8 is no longer usable\n'
有没有来自wsgi
社区或node.js
社区的见解?我不知所措。在
检查运行的uWSGI是否有内存限制(比如limitas或cgroup/jail)。从它派生的进程将继承这些限制。甚至检查v8可能期望的环境变量(比如HOME)
相关问题 更多 >
编程相关推荐