定期关闭乘客服务器的主要原因是什么?
在我的Rails应用程序中,我使用定期关闭乘客服务器的主要原因是什么?
Apache + ruby 1.9.2p180 + Rails 3.0.5 + Phusion Passenger version 3.0.13
有人能告诉我为什么我的客运定期关闭。有人请帮助
This is the last error after which the application stops working
[Fri Aug 31 02:07:23 2012] [error] [client 141.212.121.10] Premature end
of script headers:
[ pid=17952 thr=1 file=ext/apache2/Hooks.cpp:817 time=2012-08-31
02:07:23.257 ]: The backend application (process 13680) did not send a
valid HTTP response; instead, it sent nothing at all. It is possible
that it has crashed; please check whether there are crashing bugs in
this application.
[Fri Aug 31 04:20:55 2012] [notice] child pid 27795 exit signal
Segmentation fault (11)
[Fri Aug 31 04:20:56 2012] [notice] child pid 22071 exit signal
Segmentation fault (11)
[Fri Aug 31 04:21:03 2012] [notice] child pid 13025 exit signal
Segmentation fault (11)
[Fri Aug 31 04:21:04 2012] [notice] child pid 24538 exit signal
Segmentation fault (11)
[Fri Aug 31 04:21:06 2012] [notice] child pid 17065 exit signal
Segmentation fault (11)
I am using
ruby 1.9.2p180
Rails 3.0.5
Phusion Passenger version 3.0.13
在此先感谢。
错误提示:“请检查此应用程序中是否存在崩溃的 错误。”
您是否尝试删除您的Web应用程序,并尝试使用简单的index.html页面?
如果它稳定,那么问题不是来自Passenger配置,而是来自您的应用程序。 在这种情况下,通过在应用程序中添加loger来增加日志详细程度,每一步都有用户交互。
检查您是否使用apache2-mpm-prefork而不是apache2-mpm-worker。 这个apache2-mpm-worker是一个多线程版本,不幸的是乘客不支持使用apache2的多线程。 尝试以下命令请检查是否安装与否:
aptitude show apache2-mpm-worker
aptitude show apache2-mpm-prefork
这是什么命令显示?
passenger-install-apache2-module
你应该拥有一切绿色。
谢谢@Douglas,但我如何追踪我的应用程序错误? –
+1求助谢谢,但我的乘客再次关机不知道为什么? –
检查您的日志/ developement.log文件以查看崩溃前的最新错误。 – Douglas
内存不足? – apneadiving
'egrep -i'杀死进程'/ var/log/messages'说什么? – Willian
今天我的乘客服务器再次关闭,并发生同样的错误。我无法确定究竟是什么错误? –