Nginx
phusion 乘客處理死亡和新的神秘啟動
正如你所看到的,乘客程序正在消亡,新的程序正在啟動,即使我們自己沒有明確地重新啟動乘客。我們無法確定是什麼原因造成的。我們應該尋找哪些常見的地方來找出觸發這些重啟的原因?
這些
passenger-status
命令相隔大約 30 分鐘發出。passenger_pool_idle_time
在我們的 conf 文件中設置為 0,您可以在此處查看:https ://gist.github.com/panabee/8ddf95a72d6a07e29c7f我們在乘客 4.0.5、rails 3.2.12 和 nginx 1.4.1 上。
[root@mongo ~]# passenger-status ----------- General information ----------- Max pool size : 20 Processes : 3 Requests in top-level queue : 0 ----------- Application groups ----------- /home/p/p#default: App root: /home/p/p Requests in queue: 0 * PID: 17171 Sessions: 0 Processed: 536 Uptime: 27m 56s CPU: 0% Memory : 62M Last used: 20s ago * PID: 18087 Sessions: 0 Processed: 363 Uptime: 17m 31s CPU: 0% Memory : 36M Last used: 39s ago * PID: 19382 Sessions: 0 Processed: 51 Uptime: 2m 55s CPU: 0% Memory : 34M Last used: 5s ago [root@mongo ~]# passenger-status ----------- General information ----------- Max pool size : 20 Processes : 2 Requests in top-level queue : 0 ----------- Application groups ----------- /home/p/p#default: App root: /home/p/p Requests in queue: 0 * PID: 25266 Sessions: 0 Processed: 73 Uptime: 2m 56s CPU: 0% Memory : 32M Last used: 34s ago * PID: 25462 Sessions: 1 Processed: 18 Uptime: 51s CPU: 0% Memory : 28M Last used: 0s ago [root@mongo ~]#
config.ru:
[root@newvps Tekiki]# cat config.ru # This file is used by Rack-based servers to start the application. require ::File.expand_path('../config/environment', __FILE__) run Tekiki::Application
這是 4.0.5 中的錯誤,將在 4.0.6 中修復。同時,將 pool_idle_time 設置為較大的值。