Displaying 11 results from an estimated 11 matches for "maxclassprocesses".
2006 Feb 01
3
apache2 / fcgi / RoR - no connection
...the apache logs.
Relevant bit of httpd.conf:
<IfModule mod_fastcgi.c>
AddHandler fastcgi-script .fcgi
</IfModule>
FastCgiIpcDir /tmp
FastCgiServer "/tmp/rubystuff/testapp/public/dispatch.fcgi"
-idle-timeout 20-initial-env RAILS_ENV=development -processes 2
FastCgiConfig -maxClassProcesses 1 -maxProcesses 1 -minProcesses 1
-processSlack 1
[ ... ]
<Directory /tmp/rubystuff/testapp/public>
RewriteEngine On
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ di...
2005 Dec 23
1
FastCGI and large file uploads
I use dreamhost for my hosting provider, and I am working on app where
it requires large files (max 10 MB) to be uploaded to the server. As
of right now the fastcgi processes are configured with:
FastCgiConfig -autoUpdate -initial-env RAILS_ENV=production \
-idle-timeout 120 -maxClassProcesses 5 -killInterval 300
My problem is that I try and upload a file via the web that is around
5 MB to the fastcgi process, the webbrowser sits for a few minutes,
then an error message comes back. Uploading via the webrick server
works fine. Does anyone know what the problem is? Is the
idle-timeout...
2006 Apr 08
3
FastCGI issues
...tempting to get Rails running on Windows with an Apache 2 server.
I seem to be having some trouble, and in spite of my best efforts to
find a solution, I could not.
I believe that I configured Apache correctly. I have included
EnableSendfile Off
EnableMMAP Off
Win32DisableAcceptEx
FastCgiConfig -maxClassProcesses 1 -maxProcesses 1 -minProcesses 1
-processSlack 1 \
-initial-env
PATH="c:/ruby/bin;c:/windows/system32;c:/windows;C:/mysql/bin" \
-initial-env RUBYOPT=rubygems
in httpd.conf per this article:
http://dema.ruby.com.br/articles/2005/08/23/taming-fastcgi-apache2-on-windows
As soon as I tr...
2006 May 30
0
Performance problem with Apache-FCGI-Rails
We have our Rail 1.0 application running on Apache 1.3 with FastCGI. The
httpd.conf has :
<IfModule mod_fastcgi.c>
FastCgiIpcDir /tmp/fcgi_ipc
FastCgiServer /root/zs/public/dispatch.fcgi -processes 2
FastCgiConfig -autoUpdate -initial-env RAILS_ENV=production
-idle-timeout 120
-maxClassProcesses 2 -killInterval 300
</IfModule>
The dispatch.fcgi is the default provided in the Rails app:
#! /usr/local/bin/ruby
require File.dirname(__FILE__) + "/../config/environment"
require ''fcgi_handler''
RailsFCGIHandler.process!
When one person is remotely accessing...
2006 Feb 03
0
FastCgiExternalServer vs. static/dynamic
I''m trying to switch to the "external" fcgi method.
In httpd.conf, this works:
FastCgiServer "/tmp/rubystuff/testapp/public/dispatch.fcgi"
-idle-timeout 20 -processes 4
FastCgiConfig -maxClassProcesses 2 -maxProcesses 2 -minProcesses 1
-processSlack 1
This fails with an error (the public/500.html page is returned):
FastCgiExternalServer "/tmp/rubystuff/testapp/public/dispatch.fcgi"
-idle-timeout 20 -host localhost:19999
For the external, I am also starting
$ cgi-fcgi -start -conne...
2006 Jan 19
0
Rails with Apache - application failed to start
...e instructions in the article
http://dema.ruby.com.br/articles/2005/08/23/taming-fastcgi-apache2-on-windows
to make rails work with apache:
Install Apache2, latest stable version
Install the latest Ruby Installer for Windows
Install the latest Ruby For Apache
In httpd.conf I have:
FastCgiConfig -maxClassProcesses 1 -maxProcesses 1 -minProcesses 1
-processSlack 1 \
-initial-env PATH=e:/ruby/bin;d:/windows/system32;d:/windows \
-initial-env RUBYOPT=rubygems \
-initial-env
MAGICK_CONFIGURE_PATH=e:/ruby/lib/ruby/gems/1.8/gems/RMagick-win32-1.7.0-mswin32/config
When I browse http://127.0.0.1/ it shows ok, bu...
2005 Dec 30
0
XP Apache FastCGI ok if RAILS_ENV="", crash when RAILS_ENV="production"
...rand name)
- Apache 2.0.55 (msi)
- Ruby for Apache 1.3.1
- Database backend is now Oracle 8.1
Everything run fine with default environment, I''m confused for
switching into ''production''.
By default RAILS_ENV is null, and my env is like explained by Deme :
FastCgiConfig -maxClassProcesses 1 -MaxProcesses 1 -minProcesses 1
-processSlack 1 \
-initial-env PATH="c:/ruby/bin;C:/oracle/ora817/bin;[snip]
-initial-env RUBYOPT=rubygems \
-initial-env MAGICK_CONFIGURE_PATH=C:/ruby/lib/ruby/gems/1.8/gems/RMagick-win32-1.9.2-mswin32/config
Also tried to add more process values.
Thi...
2005 Aug 11
0
fastcgiconfig in .htaccess?
...casional fastcgi deaths, which return 500''s.
Since I don''t have access to httpd.conf on my hosted server, is it
possible to modify my .htaccess file in order to increase the
idle-timeouts for fastcgi? What is the syntax?
I tried adding the line:
FastCgiConfig -idle-timeout 1200 -maxClassProcesses 5
to .htaccess, but that didn''t work.
Thanks,
Bryce
http://lightincense.com
[1] http://wrath.rubyonrails.org/pipermail/rails/2005-March/004475.html
2006 Aug 05
0
RMagick and FastCGI on Windows
...false. But it works, so that is
misleading.
For prod, I am running Apache2 and FastCGI (yes, I got it working.)
RMagick is not working however. The best lead I have is from here:
(http://dema.ruby.com.br/articles/2005/08/23/taming-fastcgi-apache2-on-windows)
It says to try this:
FastCgiConfig -maxClassProcesses 1 -maxProcesses 1 -minProcesses 1
-processSlack 1 -initial-env
PATH="c:/ruby/bin;c:/windows/system32;c:/windows;"
-initial-env RUBYOPT=rubygems \
-initial-env
MAGICK_CONFIGURE_PATH="c:/ruby/lib/ruby/gems/1.8/gems/RMagick-win32-1.9.2-mswin32/lib;"
No luck.
Can anyone give me...
2005 Mar 10
5
dispatch.fcgi dieing randomly
Recently my application has refused to start on my production
environment. The setup is debian(unstable)/apache2/fastcgi/mysql
Rails 0.10 (upgrading to 0.10.1 as we speak)
When I first start up apache the machine grinds to a crawl starting up
the dispatch.cfi processes. It''s a VPS with 256M of ram, but still
(in addition to user time) it''s spending 30% of time in system
2006 Feb 08
5
debugging 500 Internal Server Error when dispatch.fcgi run?
I''m trying to get my Ruby on Rails application to work under Apache. It
works fine when run as WEBrick ("ruby script/server").
As suggested in
http://www.ocssolutions.com/support/ruby/troubleshooting-ruby-on-rails.php
, I tried running dispatch.fcgi on the command line. When I run it, no
matter where I run it, it outputs:
500 Internal Server Error
Both the #! (shebang)