Speed up Rails and cgi script

Hello!

I have a Rails application and a CGI script which uses this application
models (api script). The application makes http requests to the api
script and shows result.
It works really slow… I have found some good topics about speeding up
the Rails, but some are old, and others are about changes in the code.

Currently I’m looking for good articles about software optimization,
so I can configure my server correctly for better Rails work.
Could you advice some?
My configuration:
FreeBSD 6.2
Apache 2.2 + the latest Phusion Passenger + the latest Ruby Enterprise
Ruby 1.8.6
Rails 2.1.0
the latest MySQL
sessions in cookies

Thanks in advance!

On 6 Sep 2008, at 12:45, Konstantin [email protected] wrote:

Hello!

I have a Rails application and a CGI script which uses this
application
models (api script). The application makes http requests to the api
script and shows result.
That sounds a bit odd. The application is making http requests to
another script on the same machine? Is that other script reloading
rails each time it runs?

Fred

That sounds a bit odd. The application is making http requests to
another script on the same machine? Is that other script reloading
rails each time it runs?

Yes, currently it’s odd :slight_smile: Both cgi script and Rails app are on the
same machine, and of course I can include the script without making
http requests to it.
But in the nearest future other applications from other sites will
make these requests, so I need to be sure that it works fast exactly
in this way.
And unfortunately I see that it works very slow now… A simple page
is loading about 60-90 seconds.

Actually it’s just a question to all experinced Rails developers: what
kind of configuration do you have on your production servers? Pros/
cons of some software?
It will be great if you can share some of your knowledge.

Let me direct your attention here:

http://groups.google.com/group/rubyonrails-deployment

:wink:


seth - subimage llc

http://sublog.subimage.com

Cashboard - Estimates, invoices, and time tracking software - for free!
http://www.getcashboard.com

Substruct - Open source RoR e-commerce software.
http://code.google.com/p/substruct/