Mysql “如何更改或设置”;乘客池空闲时间“;?

Mysql “如何更改或设置”;乘客池空闲时间“;?,mysql,ruby-on-rails,ruby,linux,passenger,Mysql,Ruby On Rails,Ruby,Linux,Passenger,我的应用程序乘客日志中有错误 [error]Premature end of script headers: [ pid=xxxxx thr=x file=ext/apache2/Hooks.cpp:xxx time=2012-10-06 07:45:05.816 ]: The backend application (process 29746) did not send a valid HTTP response; instead, it sent nothing at all. It

我的应用程序乘客日志中有错误

[error]Premature end of script headers: 
[ pid=xxxxx thr=x file=ext/apache2/Hooks.cpp:xxx time=2012-10-06 07:45:05.816 ]: The backend application (process 29746) 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.
我在互联网上搜索,发现这个问题可以通过设置乘客池空闲时间来解决

有人能建议怎么设置吗


提前感谢

在您的Apache httpd.conf文件中,在“LoadModule乘客\ U模块”之后添加这一行


将“300”更改为关机前应用程序进程可以空闲的秒数以节省内存。

谢谢,我已将其更改为500,让我们看看我的应用程序是否会关机!我的服务器今天再次关闭,出现同样的错误。我认为在PassengerPolidleTime中,active、inactive和count都有问题。您能建议如何设置以及在哪里设置吗?我对这些乘客选项并不十分熟悉,但现在您知道了将它们放置在何处,您可以在乘客文档中看到您可以使用的所有内容:
PassengerPoolIdleTime 300