客运核心关闭没有已知原因

时间:2017-09-21 20:17:53

标签: passenger

我有一个Passenger(Apache / Linux)实例,它以我以前从未观察到的方式关闭,我在网上找不到类似的东西。我在下面的事件之前和之后都包含了日志条目。

基本上,Passenger Core关闭时没有任何错误,甚至没有SIGTERM的证据。我无法复制这种行为,这让我很担心,因为如果我无法重现或确定原因,我无法确保它不会再发生。

我看过很多关于“收到信号。正常关闭...”的报告,接着是“接收到优先关闭的命令”。但在所有情况下都有一个原因,如“乘客看门狗被杀”或“抓住SIGTERM,关闭”。在这种情况下,没有什么,zilch,nada。服务器运行正常,然后“正常”关闭。

stdout:使用/usr/local/rvm/gems/ruby-2.1.0

[passenger_native_support.so] not compiling because PASSENGER_COMPILE_NATIVE_SUPPORT_BINARY=0

[passenger_native_support.so] not downloading because PASSENGER_DOWNLOAD_NATIVE_SUPPORT_BINARY=0

[passenger_native_support.so] will not be used (can't compile or download)
--> Passenger will still operate normally.

[ 2017-09-19 18:04:40.9563 11820/7f675ae4d700 age/Cor/CoreMain.cpp:907 ]: Checking whether to disconnect long-running connections for process 28420, application 

[ 2017-09-19 18:04:45.2712 11820/7f675ae4d700 age/Cor/CoreMain.cpp:907 ]: Checking whether to disconnect long-running connections for process 29329, application 

**[ 2017-09-19 18:04:46.9925 11820/7f6754dea700 age/Cor/CoreMain.cpp:585 ]: Signal received. Gracefully shutting down... (send signal 2 more time(s) to force shutdown)**

**[ 2017-09-19 18:04:46.9926 11820/7f675ae907e0 age/Cor/CoreMain.cpp:989 ]: Received command to shutdown gracefully. Waiting until all clients have disconnected...**

[ 2017-09-19 18:04:46.9927 11820/7f675ae907e0 age/Cor/CoreMain.cpp:907 ]: Checking whether to disconnect long-running connections for process 14535

[ 2017-09-19 18:04:46.9929 11820/7f675ae907e0 age/Cor/CoreMain.cpp:907 ]: Checking whether to disconnect long-running connections for process 31837

[还有更多这些“检查是否断开连接”消息]

[ 2017-09-19 18:04:47.0046 11820/7f670a1fc700 Ser/Server.h:817 ]: [ApiServer] Freed 0 spare client objects

[ 2017-09-19 18:04:47.0047 11820/7f670a1fc700 Ser/Server.h:464 ]: [ApiServer] Shutdown finished

[ 2017-09-19 18:04:47.0048 11820/7f673cdfa700 Ser/Server.h:817 ]: [ServerThr.7] Freed 128 spare client objects

[ 2017-09-19 18:04:47.0056 11820/7f673cdfa700 Ser/Server.h:464 ]: [ServerThr.7] Shutdown finished

[ 2017-09-19 18:04:47.0081 11820/7f673f5fe700 Ser/Server.h:817 ]: [ServerThr.3] Freed 128 spare client objects

[ 2017-09-19 18:04:47.0089 11820/7f673f5fe700 Ser/Server.h:464 ]: [ServerThr.3] Shutdown finished

[还有更多这些“Freed 128 spare”和“Shutdown finished”消息]

**[ 2017-09-19 18:05:01.3870 11820/7f675ae907e0 age/Cor/CoreMain.cpp:1055 ]: Passenger core shutdown finished**

[Tue Sep 19 18:05:02 2017] [notice] child pid 11876 exit signal Segmentation fault (11)

[Tue Sep 19 18:05:02 2017] [notice] child pid 11877 exit signal Segmentation fault (11)

1 个答案:

答案 0 :(得分:0)

您是否尝试将PassengerPoolIdleTime设置为0(在Apache中)?

https://www.phusionpassenger.com/library/config/apache/reference/#passengerpoolidletime