我在uWSGI日志中收到以下回溯,我不知道从哪里开始想要解决这个问题:
Thu Feb 12 17:08:18 2015 - mapping worker 1 to CPUs: 0
Thu Feb 12 17:09:40 2015 - WSGI app 0 (mountpoint='') ready in 82 seconds on interpreter 0x129e3d0 pid: 21930 (default app
Thu Feb 12 17:10:11 2015 - *** HARAKIRI ON WORKER 1 (pid: 21930, try: 1) ***
Thu Feb 12 17:10:11 2015 - *** backtrace of 21930 ***
app(uwsgi_backtrace+0x2e) [0x45121e]
app(what_i_am_doing+0x30) [0x451350]
/lib/x86_64-linux-gnu/libc.so.6(+0x36d40) [0x7feea1becd40]
/lib/x86_64-linux-gnu/libc.so.6(__select+0x33) [0x7feea1ca8933]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(+0x984ed) [0x7feea092f4ed]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x4bd4) [0x7feea09f70d4]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x80d) [0x7feea09f917d]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(+0x162310) [0x7feea09f9310]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyObject_Call+0x43) [0x7feea09c0e23]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(+0x7d30d) [0x7feea091430d]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyObject_Call+0x43) [0x7feea09c0e23]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(+0x513c8) [0x7feea08e83c8]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyObject_Call+0x43) [0x7feea09c0e23]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x2316) [0x7feea09f4816]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x80d) [0x7feea09f917d]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(+0x1623e5) [0x7feea09f93e5]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyObject_Call+0x43) [0x7feea09c0e23]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0xeb1) [0x7feea09f33b1]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x80d) [0x7feea09f917d]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(+0x1623e5) [0x7feea09f93e5]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyObject_Call+0x43) [0x7feea09c0e23]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0xeb1) [0x7feea09f33b1]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x80d) [0x7feea09f917d]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(+0x162310) [0x7feea09f9310]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyObject_Call+0x43) [0x7feea09c0e23]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyObject_CallFunctionObjArgs+0x141) [0x7feea097bb61]
/var/www/app/env/local/lib/python2.7/site-packages/newrelic-2.42.0.35/newrelic/packages/wrapt/_wrappers.so(+0x416c) [0x7fee9e18516c]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyObject_Call+0x43) [0x7feea09c0e23]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0xeb1) [0x7feea09f33b1]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x80d) [0x7feea09f917d]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x48d8) [0x7feea09f6dd8]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x80d) [0x7feea09f917d]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(+0x1623e5) [0x7feea09f93e5]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyObject_Call+0x43) [0x7feea09c0e23]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0xeb1) [0x7feea09f33b1]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x80d) [0x7feea09f917d]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(+0x162310) [0x7feea09f9310]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyObject_Call+0x43) [0x7feea09c0e23]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyObject_CallFunctionObjArgs+0x141) [0x7feea097bb61]
/var/www/app/env/local/lib/python2.7/site-packages/newrelic-2.42.0.35/newrelic/packages/wrapt/_wrappers.so(+0x448a) [0x7fee9e18548a]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyObject_Call+0x43) [0x7feea09c0e23]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x2316) [0x7feea09f4816]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x80d) [0x7feea09f917d]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(+0x162310) [0x7feea09f9310]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyObject_Call+0x43) [0x7feea09c0e23]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(+0x7d30d) [0x7feea091430d]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyObject_Call+0x43) [0x7feea09c0e23]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(+0x12e5f5) [0x7feea09c55f5]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyObject_Call+0x43) [0x7feea09c0e23]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_CallObjectWithKeywords+0x47) [0x7feea097f837]
/usr/lib/uwsgi/plugins/python_plugin.so(python_call+0x11) [0x7feea0e0e4f1]
/usr/lib/uwsgi/plugins/python_plugin.so(uwsgi_request_wsgi+0x127) [0x7feea0e10847]
app(wsgi_req_recv+0xa1) [0x413f31]
app(simple_loop_run+0xc4) [0x44d5d4]
app(uwsgi_ignition+0x17b) [0x45180b]
app(uwsgi_worker_run+0x26d) [0x4523ad]
app(uwsgi_start+0x15e3) [0x453b23]
app(main+0xfb5) [0x413595]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7feea1bd7ec5]
app() [0x413649]
*** end of backtrace ***
Thu Feb 12 17:10:11 2015 - HARAKIRI: --- uWSGI worker 1 (pid: 21930) WAS managing request /v3/remoco/now_next since Thu Feb 12 17:09:40 2015 ---
Thu Feb 12 17:10:13 2015 - *** HARAKIRI ON WORKER 1 (pid: 21930, try: 2) ***
Thu Feb 12 17:10:14 2015 - DAMN ! worker 1 (pid: 21930) died, killed by signal 9 :( trying respawn ...
Thu Feb 12 17:10:14 2015 - Respawned uWSGI worker 1 (new pid: 21985)
Thu Feb 12 17:10:14 2015 - mapping worker 1 to CPUs: 0
我想也许新线可能与它有关,所以我在机器上禁用了newrelic但是我得到了相同的回溯而没有新的线。
我在Ubuntu 14.04上运行uWSGI版本1.9.17.1-debian
并且已应用所有更新。
这是我的uWSGI应用程序配置:
[uwsgi]
; define variables to use in this script
; process name for easy identification in top
project = app
base_dir = /var/www/%(project)
chdir = %(base_dir)
plugins = python
virtualenv = %(base_dir)/env
uid = www-data
gid = www-data
procname = %(project)
; This value needs to be tuned
workers = 12
max-request = 40000
harakiri = 30
reload-mercy = 8
cpu-affinity = 2
reload-on-as = 512
reload-on-rss = 192
no-orphans = true
master = true
; Create pid file for easier process management
pidfile2 = %(base_dir)/run/%(project).pid
; Specify your app here
wsgi-file = %(base_dir)/project/%(project)-wsgi.py
log-reopen = true
logto2 = %(base_dir)/logs/uwsgi.log
chmod-socket = 666
vacuum = true
enable-threads = true
single-interpreter = true
lazy-apps = true
buffer-size=32768
; unix socket
socket = /tmp/%(project)-server.sock
; Enable stats
stats = /tmp/%(project)-stats.sock
如果还有其他任何我可以添加的内容,请告诉我,我会。