[users@httpd] Performance problem with Apache-FCGI-Rails

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 the application, the speed is very good. 
When there are two or more people accessing, the app becomes very slow. It seems 
that the dispatch.fcgi has to occasionally restart. However, the restart takes 
about 20 seconds, which makes the app occassionally slow. 
Has anyone faced a similar problem? What is the solution?

Thanks,
Yash


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux