Hello Gabriel.

Thank you for your reply. 


The problem was solved when changing ErrorScanInterval. 

:productoin.log 
 There is no error. 


:Apache access.log
  127.0.0.1 - - [13/Aug/2007:16:37:03 +0900] 6528385 "GET /ossc/ HTTP/1.0" 200 
101 "-" "Wget/1.10.2 (Red Hat modified)"



However, a response does not return to a client(Web browser or wget). 

Why is it? 



 --
 Kazuki Kudo
 [EMAIL PROTECTED]

>Hi,
>
>You probably haven't changed the *ScanInterval directives. In fact 
>graceful force the fcgid process manager to restart completely. To do 
>so, it kills all the active FastCGI processes as well as your rails app. 
>If the first kill (gently killed by TERM signal) hasn't terminated the 
>process properly, the KILL signal is sent at the next loop (which 
>brutally close the rails app). The delay between the 2 kills is the 
>ErrorScanInterval delay which is by default of 3 seconds. I think this 
>explain why your rails apps errors out after > 3 seconds
>
>Gabriel
>
>On 08/13/2007 6:52:07 AM +0200, Kazuki Kudo <[EMAIL PROTECTED]> 
>wrote:
>> Hello 
>> 
>> 
>> I am developing by CentOS4.5 + Apache2.0.59 + mod_fcgid2.0 + 
>> rails1.2.3. 
>> 
>> If "graceful restart"  Apache , the mod_fcgid process forced to 
>> terminate and I am troubled. 
>> 
>>  # service  httpd  graceful 
>> 
>> 
>> If the execution time of rails application is less than 2 seconds, it 
>> will reboot normally. 
>> 
>> If the execution time of rails application exceeds 3 seconds, it may 
>> force to terminate. 
>> 
>> 
>> 
>> :Rails  Source Code
>>   class OsscController < ApplicationController
>>   def index
>>       sleep 3
>>       render :layout => false
>>     end
>>   end
>> 
>> 
>> 
>> :productoin.log 
>> F, [2007-08-13T11:51:54] FATAL -- :
>> 
>> SystemExit (exit):
>>     /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/fcgi_handler.rb:
>>     116:in `exit'
>>     /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/fcgi_handler.rb:
>>     116:in `exit_now_handler'
>>     /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/
>>     active_support/inflector.rb:250:in `to_proc'
>>     /app/controllers/ossc_controller.rb:9:in `call'
>>     /app/controllers/ossc_controller.rb:9:in `sleep'
>>     /app/controllers/ossc_controller.rb:9:in `index'
>>     /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/
>>     action_controller/base.rb:1095:in `send'
>>     /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/
>>     action_controller/base.rb:1095:in `perform_action_without_filters'  
>> 
>>                         :(omitted)
>> 
>>     /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/
>>     action_controller/session_management.rb:114:in `process'
>>     /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/
>>     action_controller/base.rb:330:in `process'
>>     /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:41:
>>     in `dispatch'
>>     /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/fcgi_handler.rb:
>>     168:in `process_request'
>>     /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/fcgi_handler.rb:
>>     143:in `process_each_request!'
>>     /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/fcgi_handler.rb:
>>     109:in `with_signal_handler'
>>     /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/fcgi_handler.rb:
>>     142:in `process_each_request!'
>>     /usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:612:in `
>>     each_cgi'
>>     /usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:609:in `
>>     each'
>>     /usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:609:in `
>>     each_cgi'
>>     /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/fcgi_handler.rb:
>>     141:in `process_each_request!'
>>     /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/fcgi_handler.rb:
>>     55:in `process!'
>>     /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/fcgi_handler.rb:
>>     25:in `process!'
>>     /opt/railsapp/public/dispatch.fcgi:24
>> 
>> 
>> 
>> "graceful" must be the specification which reboots after the request 
>> processing currently received is completed. 
>> 
>> It seems that however, it has forced to terminate before processing of a 
>> mod_fcgid process is completed. 
>> 
>> Does someone know solution? 
>> 
>> 
>> 
>> --
>> Kazuki Kudo
>> [EMAIL PROTECTED]
>> 
>> 
>> 
>> 
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by: Splunk Inc.
>> Still grepping through log files to find problems?  Stop.
>> Now Search log events and configuration files using AJAX and a browser.
>> Download your FREE copy of Splunk now >>  http://get.splunk.com/
>> _______________________________________________
>> Mod-fcgid-users mailing list
>> Mod-fcgid-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/mod-fcgid-users
>
>-------------------------------------------------------------------------
>This SF.net email is sponsored by: Splunk Inc.
>Still grepping through log files to find problems?  Stop.
>Now Search log events and configuration files using AJAX and a browser.
>Download your FREE copy of Splunk now >>  http://get.splunk.com/
>_______________________________________________
>Mod-fcgid-users mailing list
>Mod-fcgid-users@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/mod-fcgid-users


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Mod-fcgid-users mailing list
Mod-fcgid-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mod-fcgid-users

Reply via email to