什么是周期性地关闭了客运服务器的主要原因是什么? [英] What are the main reasons for passenger server shut down periodically?

查看:176
本文介绍了什么是周期性地关闭了客运服务器的主要原因是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的Rails应用程序中,我使用

In my rails application, I am using

的Apache +红宝石1.9.2p180 +的Rails 3.0.5 +的Phusion客运版本3.0.13

有人能告诉我为什么我的客运定期关闭。有人请帮助

Can somebody please tell me why my passenger shut down periodically. Somebody please help

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

先谢谢了。

推荐答案

错误说:请检查是否有崩溃错误
这个应用程序。

The error says : "please check whether there are crashing bugs in this application."

你有没有尝试删除您的Web应用程序,并用一个简单的index.html页面试试?

Did you try to remove your web application, and try with a simple index.html page ?

如果它的稳定之后,问题并非来自乘客的配置,而是在你的应用程序。
在这种情况下,通过在每个步骤有用户的交互应用程序中添加loger增加日志详细程度

If it's stable then the issue doesn't come from Passenger config, but rather in your application. In this case, increase the log verbosity by adding loger in your application at each step there is a user interaction.

还您正在使用的Apache2-mpm- prefork而不是Apache2的-MPM-工人检查。
这Apache2的-MPM-工人是一个多线程版本,可惜乘客不支持多线程与Apache2的。
试试下面的命令来请检查是否是安装还是不:

Check also that you are using apache2-mpm-prefork and not apache2-mpm-worker. This apache2-mpm-worker is a multi-thread version, and unfortunately passenger doesn't support multi-thread with apache2. Try following commands to check wether it is installed or not :

aptitude show apache2-mpm-worker
aptitude show apache2-mpm-prefork

这是什么命令显示?

What does this command shows ?

passenger-install-apache2-module

您应该拥有的一切绿色的。

You should have everything green.

这篇关于什么是周期性地关闭了客运服务器的主要原因是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆