How to make my RESTApps work faster

Hello All,
I am working with rails in Windows xp platform since last 2 month or
so.I have made some basic and simple rails CRUD app.
But whenever I tried to put some authentication on top of the apps,the
app went a lot slower.Specially when accessed from remote client
machines.

  • RUBYGEMS VERSION: 1.8.10
    • RUBY VERSION: 1.8.7 (2011-06-30 patchlevel 352) [i386-mingw32]
    • INSTALLATION DIRECTORY: C:/Ruby187/lib/ruby/gems/1.8
    • RUBY EXECUTABLE: C:/Ruby187/bin/ruby.exe
    • EXECUTABLE DIRECTORY: C:/Ruby187/bin
    • RUBYGEMS PLATFORMS:
      • ruby
      • x86-mingw32
        -RAILS 3.0.10

I am using AptanaStudio3 as IDE and I have used gem ‘devise 1.1.rc0’
for authentication.
Can anyone tell me how can I make my RESTful apps work a li’l faster
with this configuration or any other that might help?

Regards,
Pallav

On 2 February 2012 07:43, Pallav_bfs [email protected] wrote:

  • RUBY EXECUTABLE: C:/Ruby187/bin/ruby.exe
  • EXECUTABLE DIRECTORY: C:/Ruby187/bin
  • RUBYGEMS PLATFORMS:
  • ruby
  • x86-mingw32
    -RAILS 3.0.10

I am using AptanaStudio3 as IDE and I have used gem ‘devise 1.1.rc0’
for authentication.
Can anyone tell me how can I make my RESTful apps work a li’l faster
with this configuration or any other that might help?

Are you running in development or production mode? Development is
slow as it reloads all the classes at each request.

Colin

Hello Colin,
I’ve tried production mode also…But that doesn’t come with a lot of
improvement.
And I am using webbrick server.

On 2 February 2012 09:18, Pallav_bfs [email protected] wrote:

Hello Colin,
I’ve tried production mode also…But that doesn’t come with a lot of
improvement.
And I am using webbrick server.

There is the question of what you mean by slow of course. Any Ajax
call must do a round trip to the server.

Start by looking in the log though to see if any clues there.

I have not done it myself but there is a Rails Guide on Performance
Testing which purports to provide methods of profiling your app to see
where the bottlenecks are. Others who have experience of this may be
able to offer suggestions. Also googling for ruby rails profile
provides a number of useful looking hits (include ruby in the search
or you find all about the profile of rail lines).

Colin

I am working with rails in Windows xp platform since last 2 month or

  • RUBYGEMS PLATFORMS:
    slow as it reloads all the classes at each request.


gplus.to/clanlaw

Thanks Colin,I am trying to resolve this.
Please share if you find anything useful there.

My team also faced the slowness of app when upgraded to Rails 3.1 from
Rails 2.3.8, using Ruby 1.8.7.

We upgraded to Ruby version to 1.9 to overcome the slowness.
The app runs better in Ruby 1.9.2 with Rails 3.

  • Neethu

Thanks Neethu,we will surely try that also.

On 2 February 2012 09:55, Pallav_bfs [email protected] wrote:

Thanks Colin,I am trying to resolve this.
Please share if you find anything useful there.

I was not suggesting that I do the research, just pointing out that
where you might start yourself.

Colin

call must do a round trip to the server.
Colin

Hello All,

  • EXECUTABLE DIRECTORY: C:/Ruby187/bin
    Are you running in development or production mode? Development is
    For more options, visit this group
    athttp://groups.google.com/group/rubyonrails-talk?hl=en.
    For more options, visit this group at
    http://groups.google.com/group/rubyonrails-talk?hl=en.


gplus.to/clanlaw

On Feb 2, 3:32am, Neethu S. [email protected] wrote:

My team also faced the slowness of app when upgraded to Rails 3.1 from
Rails 2.3.8, using Ruby 1.8.7.

We upgraded to Ruby version to 1.9 to overcome the slowness.
The app runs better in Ruby 1.9.2 with Rails 3.

  • Neethu

I agree with Neethu. Upgrade your Ruby version before you try anything
else.

Thanks,
B.

why are you running WEBrick as your production webserver? it’s not
designed for that.

get an apache or Nginx install post haste!

jordan

I didn’t assume that you would do the research for me!
Thanks for guiding the direction.
I only asked for sharing any clue in case you find something …
Thanks again

-Pallav

I agree would get Nginx running passenger. You also I believe did not
mention the amount of memory you
have on your server etc.