-
-
Notifications
You must be signed in to change notification settings - Fork 200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Growing memory usage #1276
Comments
That's weird! I can try setting that up and doing some heap dumps on that and give an explanation. Here's some notes from my previous explorations if you wanted to try it yourself on your own app.: https://island94.org/2024/01/the-answer-is-in-your-heap-debugging-big-rails-memory |
Hmm, I'm having trouble reproducing this. Albeit I'm using slightly different versions (Ruby 3.2.2, Rails 7.0.8.1) I ran it for an hour and did some sampling and I only seem memory of:
When you were doing your sampling, were you running with But none of that is to disbelieve that you're seeing bad memory growth in production. I can totally believe that, though can't pinpoint the cause without more digging. Here's my calendar if you wanted to look at it together: https://calendly.com/bensheldon/office-hours My ask to prepare would be:
|
Thanks for offering to chat about this. I've set up I can confirm that with |
Closing since the memory issue is likely elsewhere in our app. We did not successfully track it down, though. |
Bummer that you couldn't track down the culprit |
Hi there. good_job is a cool project. I like the way it uses the Rails hooks.
Anyway, we've been seeing growing memory usage in our app and traced it down to good_job itself (we think). I created a fresh Rails app and only ran good_job, and watched the Resident Set Size (RSS) over 10 minutes. It increased, quickly at first, and then more slowly -- but it kept increasing.
Ruby: 3.1.0p0
Rails: 7.0.8.1
good_job: 3.26.1
My script (GNU/Linux):
rails new example -d postgres
&&cd example
bundle add good_job
bin/rails db:create
&&bin/rails db:migrate
bundle exec good_job start
And then in another shell:
(I know it's possible to get fancier but that wasn't the goal of the exercise.)
I've attached the full output to this ticket, but in summary:
Download the full 11-ish minutes (133 lines): minimal-app-memory-use.txt
The text was updated successfully, but these errors were encountered: