现在我的工具集是:
- Apache/2.2.24 (Unix)
- mod_wsgi/3.1
- Python 2.7.3(默认,2013 年 5 月 21 日,09:23:44)
之前,我的python版本是2.6,
其他 apache 和 mod_wsgi,它们的版本不会改变。如下所示:
1. Apache/2.2.24 (Unix)
2. mod_wsgi/3.1
3. Python 2.6.4 (r264:75706, Jan 28 2010, 08:50:34)
我没有看到像下面这样的错误。当我优雅地重启apache时,apache会输出错误:
[Mon Sep 09 08:58:43 2013] [notice] SIGUSR1 received. Doing graceful restart
[Mon Sep 09 08:58:43 2013] [error] Exception KeyError: KeyError(47472837226624,) in <module 'threading' from '/usr/local/python-2.7.3/lib/python2.7/threading.pyo'> ignored
[Mon Sep 09 08:58:43 2013] [error] Exception KeyError: KeyError(47472837226624,) in <module 'threading' from '/usr/local/python-2.7.3/lib/python2.7/threading.pyo'> ignored
[Mon Sep 09 08:58:43 2013] [error] Exception KeyError: KeyError(47472837226624,) in <module 'threading' from '/usr/local/python-2.7.3/lib/python2.7/threading.pyo'> ignored
[Mon Sep 09 08:58:43 2013] [error] Exception KeyError: KeyError(47472837226624,) in <module 'threading' from '/usr/local/python-2.7.3/lib/python2.7/threading.pyo'> ignored
[Mon Sep 09 08:58:43 2013] [error] Exception KeyError: KeyError(47472837226624,) in <module 'threading' from '/usr/local/python-2.7.3/lib/python2.7/threading.pyo'> ignored
[Mon Sep 09 08:58:43 2013] [error] Exception KeyError: KeyError(47472837226624,) in <module 'threading' from '/usr/local/python-2.7.3/lib/python2.7/threading.pyo'> ignored
[Mon Sep 09 08:58:43 2013] [error] Exception KeyError: KeyError(47472837226624,) in <module 'threading' from '/usr/local/python-2.7.3/lib/python2.7/threading.pyo'> ignored
[Mon Sep 09 08:58:43 2013] [error] Exception KeyError: KeyError(47472837226624,) in <module 'threading' from '/usr/local/python-2.7.3/lib/python2.7/threading.pyo'> ignored
[Mon Sep 09 08:58:43 2013] [error] Exception KeyError: KeyError(47472837226624,) in <module 'threading' from '/usr/local/python-2.7.3/lib/python2.7/threading.pyo'> ignored
[Mon Sep 09 08:58:43 2013] [error] Exception KeyError: KeyError(47472837226624,) in <module 'threading' from '/usr/local/python-2.7.3/lib/python2.7/threading.pyo'> ignored
[Mon Sep 09 08:58:43 2013] [error] Exception KeyError: KeyError(47472837226624,) in <module 'threading' from '/usr/local/python-2.7.3/lib/python2.7/threading.pyo'> ignored
[Mon Sep 09 08:58:43 2013] [error] Exception KeyError: KeyError(47472837226624,) in <module 'threading' from '/usr/local/python-2.7.3/lib/python2.7/threading.pyo'> ignored
[Mon Sep 09 08:58:43 2013] [error] Exception KeyError: KeyError(47472837226624,) in <module 'threading' from '/usr/local/python-2.7.3/lib/python2.7/threading.pyo'> ignored
[Mon Sep 09 08:58:43 2013] [error] Exception KeyError: KeyError(47472837226624,) in <module 'threading' from '/usr/local/python-2.7.3/lib/python2.7/threading.pyo'> ignored
[Mon Sep 09 08:58:43 2013] [error] Exception KeyError: KeyError(47472837226624,) in <module 'threading' from '/usr/local/python-2.7.3/lib/python2.7/threading.pyo'> ignored
[Mon Sep 09 08:58:43 2013] [error] Exception KeyError: KeyError(47472837226624,) in <module 'threading' from '/usr/local/python-2.7.3/lib/python2.7/threading.pyo'> ignored
[Mon Sep 09 08:58:43 2013] [error] Exception KeyError: KeyError(47472837226624,) in <module 'threading' from '/usr/local/python-2.7.3/lib/python2.7/threading.pyo'> ignored
[Mon Sep 09 08:58:43 2013] [error] Exception KeyError: KeyError(47472837226624,) in <module 'threading' from '/usr/local/python-2.7.3/lib/python2.7/threading.pyo'> ignored
[Mon Sep 09 08:58:43 2013] [error] Exception KeyError: KeyError(47472837226624,) in <module 'threading' from '/usr/local/python-2.7.3/lib/python2.7/threading.pyo'> ignored
[Mon Sep 09 08:58:44 2013] [error] Exception KeyError: KeyError(47472837226624,) in <module 'threading' from '/usr/local/python-2.7.3/lib/python2.7/threading.pyo'> ignored
[Mon Sep 09 08:58:47 2013] [notice] Apache/2.2.24 (Unix) mod_wsgi/3.1 Python/2.7.3 configured -- resuming normal operations
[Mon Sep 09 08:58:47 2013] [warn] long lost child came home! (pid 711)
[Mon Sep 09 08:58:47 2013] [warn] long lost child came home! (pid 712)
[Mon Sep 09 08:58:47 2013] [warn] long lost child came home! (pid 713)
[Mon Sep 09 08:58:47 2013] [warn] long lost child came home! (pid 714)
[Mon Sep 09 08:58:47 2013] [warn] long lost child came home! (pid 715)
[Mon Sep 09 08:58:47 2013] [warn] long lost child came home! (pid 716)
[Mon Sep 09 08:58:47 2013] [warn] long lost child came home! (pid 717)
[Mon Sep 09 08:58:47 2013] [warn] long lost child came home! (pid 719)
据我所知,优雅地重启 Apache 不会直接终止用户请求,它会在完成响应后被杀死。但现在我认为当我通过错误日志优雅地重新启动 Apache 时,它可能会停止 python 子线程
优雅重启 Apache 时可以忽略错误日志吗?如果没有,我该如何解决这个问题?