Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7651851
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T11:36:35+00:00 2026-05-31T11:36:35+00:00

I’ve created a basic demo app in Rails 3.2.2 by using rails new demo.

  • 0

I’ve created a basic demo app in Rails 3.2.2 by using rails new demo. I then had a controller added with a single method which displays a view. It’s taking on average 20+ seconds to render the page when I refresh. This obviously makes it impossible to develop, so I’m trying to figure out why and how I can fix this.

I should mention that I’m on a Macbook Air 2011 with 4GB of RAM and the SSD drive so I don’t think my hardware has anything to do with the problem.

Running OSX Lion, Rails 3.2.2, & Ruby 1.9.3. Running locally via WEBrick

Update

The only changes I have made are to run rails generator Say hello goodbye.

I then modified the hello.html.erb to say Hello World!

Here is my gemfile:

source 'https://rubygems.org'

gem 'rails', '3.2.2'

# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'

gem 'sqlite3'

# Gems used only for assets and not required
# in production environments by default.
group :assets do
  gem 'sass-rails',   '~> 3.2.3'
  gem 'coffee-rails', '~> 3.2.1'

  gem 'uglifier', '>= 1.0.3'
end

gem 'jquery-rails'

Started the server by typing rails server

Update 2

Noticed this oddity in the terminal window.. it takes 8 seconds from the starting GET to the GET on the first asset.

Started GET "/say/hello" for 127.0.0.1 at 2012-03-10 22:49:12 -0700
Processing by SayController#hello as HTML
  Rendered say/hello.html.erb within layouts/application (0.1ms)
Completed 200 OK in 5ms (Views: 5.3ms | ActiveRecord: 0.0ms)


Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2012-03-10 22:49:20 -0700
Served asset /application.css - 200 OK (0ms)

THEN another 4 seconds for the next asset..

Started GET "/assets/say.css?body=1" for 127.0.0.1 at 2012-03-10 22:49:24 -0700
Served asset /say.css - 200 OK (0ms)

UPDATE 3.1

I have traced the problem down to WEBrick. I installed and used thin instead and my calls are very fast as expected. It would still be good to track down what the problem could be in case the WEBrick problem is a symptom of a larger problem..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T11:36:36+00:00Added an answer on May 31, 2026 at 11:36 am

    Not really an answer, but might help isolate the problem:

    try a different server like “thin” or “pow” http://pow.cx/ (btw: pow totally rocks!, and consider installing the powder gem which gives nice command-line tools.) Pow is super-easy to install.

    Also, check your memory utilization with Activity Monitor app — 4GB sounds like a lot, but it can get used up really fast. But I am running the same environment and not having the problem.

    I don’t guess it’s an asset compilation issue — with a squeaky-clean Rails app there’s not a whole lot of compiling to be done. But the timings are kind of damning — maybe check to see what process is chewing up CPU (or maybe disk) during the wait. You can rule out asset pipeline by setting config.assets.enabled = false in your application.rb.

    Another thing to check: are you up to the latest ruby 1.9.3 — I was seeing weird stuff on 1.9.3-p0 and am now using 1.9.3-p125 and all is well.

    And another thing to check: use curl or wget from the command line to separately request the page from the assets themselves.

    Oh, and do you use Time Machine? My machine sometimes gets very pokey when it’s running. Shouldn’t be as much of an issue with an SSD, but… who knows.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We're building an app, our first using Rails 3, and we're having to build
I am using Paperclip to handle profile photo uploads in my app. They upload
I am trying to understand how to use SyndicationItem to display feed which is
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I used javascript for loading a picture on my website depending on which small
I am reading a book about Javascript and jQuery and using one of the
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I want use html5's new tag to play a wav file (currently only supported
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.