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

时间:2012-10-09 13:47:47

标签: 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 is possible that it has crashed; 
please check whether there are crashing bugs in this application.

我在互联网上搜索,我发现这个问题可以通过设置乘客池空闲时间来解决。

任何人都可以建议如何设置吗?

提前致谢

1 个答案:

答案 0 :(得分:2)

在你的Apache httpd.conf文件中,在“LoadModule passenger_module”之后添加这一行

PassengerPoolIdleTime 300

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

相关问题