Welcome Guest | Login

Slow FastCGI load times

I was hoping to get some data from other users.

My FastCGI load times at HostingRails are always >2.0 seconds.

Requests for static content (js, css, png, etc) loaded as part of the same page load returns in under 0.10 seconds.

Can anyone commiserate? :)

2008-04-14 10:32 PM

Are you running your app in FastCGI? If so, I would recommend you go for Mongrel since it is much faster than FastCGI.

2008-04-15 12:05 AM

But what specifically is making FCGI slow? This is not the 1-5 minute process termination. It will happen on refreshes under 5 seconds apart.

2008-04-15 12:55 AM

Hello,

On a Shared Server the number of fcgi processes running at a time (especially peak times) are usually very large. Also the fcgi processes consume a lot of server resources.

So at times if the number of processes reaches more than the threshold value, then the fcgi processes are killed in order to prevent the Shared Server from going down.

Also the apache web Service will restart if the number of http connections are more than the threshold value set-up. This will further slow-up the fcgi processes.

Mongrel on the otherhand is a separate web-server. And it is usually not affected by any other parameters unless there are server reboots. But that can be overridden by setting proper crontab entries to automatically start mongrel process after server re-boot.

2008-04-15 09:00 AM

Regards,
Rahul
[quote]On a Shared Server the number of fcgi processes running at a time (especially peak times) are usually very large. Also the fcgi processes consume a lot of server resources.[/quote]

Will upgrading to 50MB dedicated memory solve these issues, or will it still be slow at times?

2008-04-15 06:01 PM

You may upgrade to 50 MB dedicated memory and follow the tutorial: http://www.hostingrails.com/forums/wiki_thread/19 to deploy your Rails app with Mongrel. This will solve your issues.

2008-04-15 06:49 PM

HostingRails Support

Hello Guest! In order to post you must be an active client with us, please log in or sign up.