Project

General

Profile

apache + fastcgi memory use

Added by thrope .... almost 13 years ago

Hello,

I would like to use Redmine with apache on a CentOS 6 system.

I have it installed and working with fastcgi, but after using the app for only a few minutes many different dispatch.fcgi processes are spawned, which soon uses all my availble memory.

Is there any way to limit fastcgi to only spawn 1 or 2 dispatch.fcgi processes and reuse them, alternatively is there any other way to run redmine through apache?

Thanks


Replies (3)

RE: apache + fastcgi memory use - Added by thrope .... almost 13 years ago

Here is some more information about my system:
[redmine@acrids redmine]$ RAILS_ENV=production script/about
About your application's environment
Ruby version 1.8.7 (x86_64-linux)
RubyGems version 1.3.7
Rack version 1.1
Rails version 2.3.11
Active Record version 2.3.11
Active Resource version 2.3.11
Action Mailer version 2.3.11
Active Support version 2.3.11
Edge Rails revision unknown
Application root /var/www/redmine
Environment production
Database adapter mysql
Database schema version 20110511000000

RE: apache + fastcgi memory use - Added by Mischa The Evil over 12 years ago

thrope .... wrote:

[...] alternatively is there any other way to run redmine through apache?

Plenty, but I'm in favor of the Phusion Passenger Apache module myself.

RE: apache + fastcgi memory use - Added by thrope .... over 12 years ago

Thanks... in this case I am using Passenger for something else and there seemed to be a minefield of incompatible versions of Ruby stuff for the two apps so I wanted to avoid it for Redmine.

I tried CGI but it didn't work (I found a bug related to it which indicated it is not likely to be fixed).

So as far as I know I am stuck with fastcgi.

But I did manage to find the setting I needed. By adding an explit FastCgi server for redmine (instead of relying on the dynamic from the .fcgi extension I was able to limit the number of processes:

FastCgiServer /var/www/redmine/public/dispatch.fcgi -processes 1

    (1-3/3)