Jochen Kaechelin
2006-Aug-16 11:37 UTC
[Rails] problems with fastcgi, apache2 and debian sarge
Apache conf: FastCgiServer /var/www/gissmoh.de/public/dispatch.fcgi -initial-env RAILS_ENV=prod uction -processes 5 -idle-timeout 60 <virtualhost 212.87.142.234:80> ServerName www.gissmoh.de DocumentRoot /var/www/gissmoh.de/public CustomLog /var/log/apache2/gissmoh.de/access.log combined SetEnv RAILS_ENV production SuexecUserGroup gissmoh gissmoh <Directory /var/www/gissmoh.de/public/> Options ExecCGI FollowSymLinks AddHandler cgi-script .cgi AllowOverride all Order allow,deny Allow from all </Directory> </virtualhost> production.log: /log# tail -f production.log /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/cgi_process.rb:112:in `session'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/cgi_process.rb:108:in `stale_session_check!'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/cgi_process.rb:108:in `session'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:918:in `assign_shortcuts_without_flash'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/flash.rb:141:in `assign_shortcuts'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:402:in `process_without_filters'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:377:in `process_without_session_management_support'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/session_management.rb:117:in `process'' /usr/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/dispatcher.rb:38:in `dispatch'' /var/www/gissmoh.de/public/dispatch.cgi:10 Apache error.log: [Wed Aug 16 13:25:02 2006] [warn] FastCGI: server "/var/www/gissmoh.de/public/dispatch.fcgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds [Wed Aug 16 13:25:02 2006] [warn] FastCGI: server "/var/www/gissmoh.de/public/dispatch.fcgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds [Wed Aug 16 13:25:02 2006] [warn] FastCGI: server "/var/www/gissmoh.de/public/dispatch.fcgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds The website is very, very slow! Any hints to boost it up?
Michael Siebert
2006-Aug-16 11:46 UTC
[Rails] problems with fastcgi, apache2 and debian sarge
use mongrel_cluster with apache 2.2 and mod_proxy_balancer. that booooosts 2006/8/16, Jochen Kaechelin <fvgi242ss@wlanhacking.de>:> > Apache conf: > > FastCgiServer /var/www/gissmoh.de/public/dispatch.fcgi -initial-env > RAILS_ENV=prod > uction -processes 5 -idle-timeout 60 > > <virtualhost 212.87.142.234:80> > ServerName www.gissmoh.de > DocumentRoot /var/www/gissmoh.de/public > CustomLog /var/log/apache2/gissmoh.de/access.log > combined > SetEnv RAILS_ENV production > > > SuexecUserGroup gissmoh gissmoh > > <Directory /var/www/gissmoh.de/public/> > Options ExecCGI FollowSymLinks > AddHandler cgi-script .cgi > AllowOverride all > Order allow,deny > Allow from all > </Directory> > </virtualhost> > > > production.log: > > /log# tail -f production.log > /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5 > /lib/action_controller/cgi_process.rb:112:in > `session'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5 > /lib/action_controller/cgi_process.rb:108:in > `stale_session_check!'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5 > /lib/action_controller/cgi_process.rb:108:in > `session'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5 > /lib/action_controller/base.rb:918:in > `assign_shortcuts_without_flash'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5 > /lib/action_controller/flash.rb:141:in > `assign_shortcuts'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5 > /lib/action_controller/base.rb:402:in > `process_without_filters'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5 > /lib/action_controller/filters.rb:377:in > `process_without_session_management_support'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5 > /lib/action_controller/session_management.rb:117:in > `process'' > /usr/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/dispatcher.rb:38:in > `dispatch'' > /var/www/gissmoh.de/public/dispatch.cgi:10 > > > Apache error.log: > > [Wed Aug 16 13:25:02 2006] [warn] FastCGI: > server "/var/www/gissmoh.de/public/dispatch.fcgi" has failed to > remain running for 30 seconds given 3 attempts, its restart > interval has been backed off to 600 seconds > [Wed Aug 16 13:25:02 2006] [warn] FastCGI: > server "/var/www/gissmoh.de/public/dispatch.fcgi" has failed to > remain running for 30 seconds given 3 attempts, its restart > interval has been backed off to 600 seconds > [Wed Aug 16 13:25:02 2006] [warn] FastCGI: > server "/var/www/gissmoh.de/public/dispatch.fcgi" has failed to > remain running for 30 seconds given 3 attempts, its restart > interval has been backed off to 600 seconds > > > The website is very, very slow! > Any hints to boost it up? > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Michael Siebert <info@siebert-wd.de> www.stellar-legends.de - Weltraum-Browsergame im Alpha-Stadium -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060816/f81516da/attachment.html
Hi, looks like you''re missing an AddHandler directive for fcgi:> <Directory /var/www/gissmoh.de/public/> > Options ExecCGI FollowSymLinks > AddHandler cgi-script .cgi > AllowOverride all > Order allow,deny > Allow from all > </Directory>Regs, Sven
Jochen Kaechelin
2006-Aug-16 13:58 UTC
[Rails] problems with fastcgi, apache2 and debian sarge
Am Mittwoch, 16. August 2006 14:28 schrieb Sven Riedel:> Hi, > > looks like you''re missing an AddHandler directive for fcgi: > > <Directory /var/www/gissmoh.de/public/> > > Options ExecCGI FollowSymLinks > > AddHandler cgi-script .cgi > > AllowOverride all > > Order allow,deny > > Allow from all > > </Directory>It''s definded here: <IfModule mod_fcgid.c> AddHandler fcgid-script .fcgi SocketPath /var/lib/apache2/fcgid/sock DefaultInitEnv RAILS_ENV production IdleTimeout 600 ProcessLifeTime 3600 MaxProcessCount 8 IPCConnectTimeout 8 IPCCommTimeout 48 </IfModule>