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 8555339
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T15:06:05+00:00 2026-06-11T15:06:05+00:00

This is currently demonstrated on my playground app, visiting it results in a 500

  • 0

This is currently demonstrated on my playground app, visiting it results in a 500, works now having deployed the fix given in the answer.

The error is was:

Processing by GcController#show as HTML
Completed 500 Internal Server Error in 0ms
NoMethodError (undefined method `stat' for GC:Module):
app/controllers/gc_controller.rb:4:in `show'

Conversely if you grab the Rails app from Github.

Then RAILS_ENV=production rails server and go to /.

You’ll get:

{:count=>131, :heap_used=>193, :heap_length=>345, :heap_increment=>152, :heap_live_num=>127915, :heap_free_num=>29930, :heap_final_num=>0}

Is it safe to assume Heroku is using a patched GC?

Has anyone else encountered this? There doesn’t appear to be any documentation about it.

I’m seeing some conflicting memory usage behaviour locally vs on Heroku, which is why I’m trying to GC.stat. I wonder if the differences could be accounted for by patched GC.


I also opened a Heroku issue for this.

  • 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-06-11T15:06:06+00:00Added an answer on June 11, 2026 at 3:06 pm

    Answer graciously stolen from JD at Heroku:

    Cedar uses 1.9.2-p290 by default. I’m not sure if GC.stat is in 1.9.2
    offhand, but it appears to not be on Heroku for sure. We don’t patch
    the Ruby versions we run.

    I can confirm that if you specify ruby '1.9.3' in your Gemfile, GC.stat will work fine.

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

Sidebar

Related Questions

Possible Duplicate: Nested function parameters and 'this' context in Javascript I'm currently having problems
I am doing this currently, class Page { // variable to hold DBC class
I have something like this currently: <div class = className style = position: absolute;
this is currently my code byte[] bytes = { 0x42, 0x1c, 00, 00 };
This is currently my htacess file: RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-d RewriteCond
This program currently inputs an image of a coin, thresholds it, binarizes it, and
Currently this code generates a colored hyperlink to an ad listing on my site.
There is currently this Prototype code that does a PUT: new Ajax.Request(someUrl, { method:
I don't think this is currently possible or if it's even a good idea,
var UI$Contract$ddlForm_change = function() { //'this' is currently the drop down that fires the

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.