I installed mod_fcgid yesterday. It works great for my Rails app. But in my fastcgi.crash.log is constantly get this output: [23/May/2006:08:12:07 :: 29040] starting [23/May/2006:08:18:48 :: 29040] asked to terminate immediately [23/May/2006:08:18:48 :: 29040] terminated by explicit exit [23/May/2006:08:22:03 :: 29391] starting It also shows up in the Apache error log. Is this normal? Or should I be worried? -- Posted via http://www.ruby-forum.com/.
Looks like your Ruby code has an exit command in it? If so, remove it, handling the exit conditional without exiting... -- -- Tom Mornini On May 22, 2006, at 11:32 PM, Maarten Hendrikx wrote:> I installed mod_fcgid yesterday. It works great for my Rails > app. But in my fastcgi.crash.log is constantly get this output: > [23/May/2006:08:12:07 :: 29040] starting > [23/May/2006:08:18:48 :: 29040] asked to terminate immediately > [23/May/2006:08:18:48 :: 29040] terminated by explicit exit > [23/May/2006:08:22:03 :: 29391] starting > It also shows up in the Apache error log. Is this normal? Or > should I be worried? > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails
Tom Mornini wrote:> Looks like your Ruby code has an exit command in it? > > If so, remove it, handling the exit conditional without > exiting...What could an exit command look like? I don''t remember ever writing one? What should I look for?> > -- > -- Tom Mornini-- Posted via http://www.ruby-forum.com/.
On May 23, 2006, at 12:14 AM, Maarten Hendrikx wrote:> Tom Mornini wrote: >> Looks like your Ruby code has an exit command in it? >> >> If so, remove it, handling the exit conditional without >> exiting... > > What could an exit command look like? I don''t remember > ever writing one? What should I look for?In it''s most common form, it would look like: exit :-) -- -- Tom Mornini
Maarten Hendrikx
2006-May-23 08:44 UTC
[Rails] Re: Re: Mod_fcgid question: is this normal?
I can''t find an exit command in my app. Where could it be? I checked every controller, every model, ... Tom Mornini wrote:> On May 23, 2006, at 12:14 AM, Maarten Hendrikx wrote: > >> Tom Mornini wrote: >>> Looks like your Ruby code has an exit command in it? >>> >>> If so, remove it, handling the exit conditional without >>> exiting... >> >> What could an exit command look like? I don''t remember >> ever writing one? What should I look for? > > In it''s most common form, it would look like: > > exit > > :-) > > -- > -- Tom Mornini-- Posted via http://www.ruby-forum.com/.
Maarten Hendrikx
2006-May-23 10:11 UTC
[Rails] Re: Re: Mod_fcgid question: is this normal?
This is the output from the apache error log: mod_fcgid process .../dispatcg.fcgi exit (idle timeout) terminated by calling exit() return code 0 Can''t be good or am I wrong? -- Posted via http://www.ruby-forum.com/.
Maarten: I get these messages, too. I am also using Apache and mod_fcgi. I do not have any exit commands, either. I haven''t found an answer, but will let you know if I find anything. Anyone else have ideas? Thanks, -Anthony On May 23, 2006, at 6:11 AM, Maarten Hendrikx wrote:> This is the output from the apache error log: > > mod_fcgid process .../dispatcg.fcgi exit (idle timeout) terminated by > calling exit() return code 0 > > Can''t be good or am I wrong? > > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails
Does anyone know the difference between "asked to reload ASAP", "asked to terminate immediately", and "terminated by explicit exit" when these phrases are found in fastcgi.crash.log? e.g.: [22/May/2006:07:16:28 :: 27060] asked to reload ASAP [22/May/2006:07:16:36 :: 28350] starting [22/May/2006:08:46:10 :: 4501] starting [23/May/2006:07:16:34 :: 4501] asked to terminate immediately [23/May/2006:07:16:36 :: 4501] terminated by explicit exit On May 23, 2006, at 6:11 AM, Maarten Hendrikx wrote:> This is the output from the apache error log: > > mod_fcgid process .../dispatcg.fcgi exit (idle timeout) terminated by > calling exit() return code 0 > > Can''t be good or am I wrong? > > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails
Maarten Hendrikx
2006-May-23 14:42 UTC
[Rails] Re: Re: Re: Mod_fcgid question: is this normal?
Great to know I''m not the only one with this issue. It all works great by the way only these error messages. -- Posted via http://www.ruby-forum.com/.
Oh, I know another possibility. You can generally set how many hits a fcgi process takes during its life. Is it possible that message is issued at the end of a processes life? The original message said you were getting these "constantly" which I (incorrectly) read as "each hit". -- -- Tom Mornini On May 23, 2006, at 7:40 AM, Maarten Hendrikx wrote:> Great to know I''m not the only one with this issue. > It all works great by the way only these error messages. > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails
Maarten Hendrikx
2006-May-23 17:22 UTC
[Rails] Re: Re: Re: Re: Mod_fcgid question: is this normal?
Tom Mornini wrote:> Oh, I know another possibility. > > You can generally set how many hits a fcgi process > takes during its life. > > Is it possible that message is issued at the end > of a processes life?Yes, it starts up a process with every hit. And if no more request are received it shuts the process down.> > The original message said you were getting these > "constantly" which I (incorrectly) read as "each > hit".So you read right, and I wrote wrong :-)> > -- > -- Tom Mornini-- Posted via http://www.ruby-forum.com/.
Vincent Rowland
2006-May-24 08:31 UTC
[Rails] Re: Re: Re: Re: Mod_fcgid question: is this normal?
I''m having the exact same problem here. My Apache error_log is filled with these messages. -- Posted via http://www.ruby-forum.com/.
Maarten Hendrikx
2006-May-24 10:27 UTC
[Rails] Re: Re: Re: Re: Mod_fcgid question: is this normal?
Ok, I''m currently experimenting with the following values in my httpd.conf: IPCCommTimeout 120 IPCConnectTimeout 10 MaxProcessCount 40 ProcessLifeTime 86400 IdleTimeout 1800 DefaultMaxClassProcessCount 8 So far, I only got a startup notice in my Apache error_log and no more shutdowns. I''ll keep you posted, because my ps aux tells me the started process has a pretty high memory footprint. The highest of a the running processes. So I''ll keep an eye on that. Maarten -- Posted via http://www.ruby-forum.com/.