每天晚上,当我们运行批处理作业时,passenger对来自客户的http请求变得没有响应。一段时间后,它又开始工作了。
rails日志中没有错误,实际上在挂起期间我根本看不到任何日志记录。
在Apache访问日志中,我们可以看到返回500个错误的所有请求:
ipaddress removed - - [09/Nov/2010:00:30:26 +0000] "GET / HTTP/1.1" 500 878 "-" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12"在apache错误日志中,我们可以看到:
[ pid=31562 file=ext/apache2/Hooks.cpp:656 time=2010-11-08 15:23:49.68 ]:
Either the vistor clicked on the 'Stop' button in the web browser, or the visitor's connection has stalled and couldn't receive the data that Apache is sending to it. As a result, you will probably see a 'Broken Pipe' error in this log file. Please ignore it, this is normal. You might also want to increase Apache's TimeOut configuration option if you experience this problem often.我运行了一些passenger实用程序,以下是输出
乘客记忆统计信息
- Apache进程
PID PPID VMSize专用名称
9502012 312.1 MB 28.2MB /usr/sbin/apache2 -k start 993 2012 309.4 MB 27.6MB /usr/sbin/apache2 -k start 1014 2012 310.8 MB 26.8 MB /usr/sbin/apache2 -k start 1038 2012 310.8 MB 26.9 MB /usr/sbin/apache2 -k start 1050 2012 309.4 MB 27.6 MB /usr/sbin/apache2 -k start 1055 2012 302.1 MB 20.1 MB /usr/sbin/apache2 -K start 1057 2012 310.9 MB 26.9 MB /usr/sbin/apache2 -k start 1059 2012 308.4 MB 26.5 MB /usr/sbin/apache2 -k start 1060 2012 310.9 MB 27.1MB /usr/sbin/apache2 -k start 1109 2012 315.5 MB 33.4 MB /usr/sbin/apache2 -k start 2012 1 284.0 MB 1.7 MB /usr/sbin/apache2 -k start 2
进程数: 11
私有脏RSS总数: 272.87 MB
- Nginx进程
进程数:0
私有脏RSS总数: 0.00 MB
-乘客流程
PID VMSize专用名称
249.3 MB 78.6 MB乘客轨道: /u/apps/demandmart/current 1108 254.8 MB 82.1MB ApplicationSpawner: /u/apps/demandmart/current 31088 87.1 MB 0.5MB /usr/lib/ruby/gems/1.8/gems/passenger-2.2.11/ext/apache2/ApplicationPoolServerExecutable 0 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.11/bin/passenger-spawn-server /usr/bin/ruby1.8 /tmp/backuer.2012 31089 47.5MB 9.8MB乘客衍生服务器
进程:4
私有脏RSS总数: 171.06 MB
乘客状态
-常规信息- max =6 count =1 active =0 inactive =1正在等待全局队列:0
-域- /u/apps/demandmart/current: PID: 1108会话:0已处理:4正常运行时间: 18m 8s
任何想法,我可以尝试/做什么来弄清楚这一点。我试过用SIGABRT杀掉它,但是日志显示我没有安装gdb。所以我可以安装它,明天再试一次,但我很好奇这是不是正常,或者我还应该尝试什么?
使用apache2、Phusion2.2.11、Ruby1.8、Rails2、ubuntu
发布于 2010-11-10 07:27:27
在我看来,您的Phusion Passenger进程并没有挂起,所有状态信息都表明Phusion Passenger是空闲的。也许这是Apache中的一个问题。
https://stackoverflow.com/questions/4129505
复制相似问题