毎晩バッチ ジョブを実行すると、パッセンジャーは顧客からの 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.
私はいくつかの旅客ユーティリティを実行しました。ここに出力があります
パッセンジャーメモリ統計
--------- Apache プロセス ---------
PID PPID VMSize プライベート名
950 2012 312.1 MB 28.2 MB /usr/sbin/apache2 -k start 993 2012 309.4 MB 27.6 MB /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.1 MB /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
プロセス: 11
プライベート ダーティ RSS の合計: 272.87 MB
-------- Nginx プロセス --------
プロセス: 0
プライベート ダーティ RSS の合計: 0.00 MB
----- 乗客のプロセス -----
PID VMSize プライベート名
1052 249.3 MB 78.6 MB Passenger ApplicationSpawner: /u/apps/demandmart/current 1108 254.8 MB 82.1 MB Rails: /u/apps/demandmart/current 31088 87.1 MB 0.5 MB /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/passenger. 2012 31089 47.5 MB 9.8 MB 旅客スポーン サーバー
プロセス: 4
プライベート ダーティ RSS の合計: 171.06 MB
旅客ステータス
----------- 一般情報 ----------- 最大 = 6 カウント = 1 アクティブ = 0 非アクティブ = 1 グローバル キューで待機中: 0
----------- ドメイン ----------- /u/apps/demandmart/current: PID: 1108 セッション: 0 処理済み: 4 アップタイム: 18m 8s
どんなアイデアでも、これを理解するために私は何をしようとする/何をすることができますか. SIGABRT で強制終了しようとしましたが、ログには gdb がインストールされていないと書かれています。それで、それをインストールして明日もう一度試すことができますが、これが正常なのか、それとも他に何を試すべきなのか知りたいです。
apache2、phusion 2.2.11、ruby 1.8、rails 2、ubuntu を使用