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

  • SEARCH
  • Home
  • 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 7495509
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T18:11:03+00:00 2026-05-29T18:11:03+00:00

While migrating a rails 2 app to rails 3 I encountered a huge increase

  • 0

While migrating a rails 2 app to rails 3 I encountered a huge increase in memory used.
After some research I found out the helpers were the problem. Uncommenting any helpers in the view would speed everything up.

Things I tried to find the real issue:

  • include_all_helpers = false
  • disable parts of the helper files
  • clean up the code by refactoring Model.all usages to some faster code

I got a theory now that some helpers might be renamed or deleted, rails starts to search for them and starts searching models / controllers as rescue.

A page request takes up to 5 seconds and using 2 GB of memory.

Anyone got a clue what causes this issue and how to fix or debug it?

  • 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-29T18:11:05+00:00Added an answer on May 29, 2026 at 6:11 pm

    Fixed by placing this in config/initializers/anti_freeze_hack.rb :

    module ActionDispatch
      module Routing
        class RouteSet
          alias inspect to_s
        end
      end
    end
    

    Credits to Amala for linking me the right topic 😀

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

Sidebar

Related Questions

We've got a weird problem while migrating our app from 1.3.7 to 2.0.0. Our
I found this Perl script while migrating my SQLite database to mysql I was
While migrating some code to the latest version of F#, included in VS2010 b1,
I got this error while migrating Sentry app in django. I am using mysql
I have Rails app, and every once in a while, when I bring new
So far, I successfully used google guice 2. While migrating to guice 3.0, I
While migrating a program from windows in linux I encountered a problem using the
while migrating from dojo 1.02 to 1.4 i have encountered a problem with grid.
After migrating my whole setup from Java 1.5 to 1.6 (J2EE, Tomcat) a couple
While I've seen rare cases where private inheritance was needed, I've never encountered a

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.