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
Memory usage growth #208
Comments
Some more info:
We're attempting to reproduce the issue. |
To test, I've started w/a bare-bones Rails 5.2.0 / Ruby 2.5.1 app, running 2 web dynos, but Scout only enabled on I'm going to let this run for a bit and see how the memory usage compares. |
So far memory usage is flat (4 hour period): @kuinak - have you applied any GC settings that override the Heroku defaults? |
@itsderek23 I reviewed the configuration and didn't see anything different with the GC options (e.g. However, I did notice that we didn't have any
The I'm wondering if it's a case of the APM failing to report because the key wasn't set, and something being held on to in memory related to your layaway process? |
I removed the Scout addon and turned logging up to |
Thanks @kuinak. Clarifying:
I'm assuming |
@itsderek23 That's correct. The gem is installed in both branches. The branch with memory growth has |
After some back and forth over email, I'm going to close this issue, although without a really satisfying answer of exactly what's happening. @kuinak collected heap dumps which showed garbage being created from what looks like code reloading, but all attempts at reproduction on our end failed. We attempted to reproduce locally with a copy of his Gemfile, but that didn't work. If there's an interaction occurring, it's likely with one of the Gems when it is fully configured, not simply present. What we found:
|
We noticed memory utilization growing on some of our lesser used apps running on Heroku. I looked at our logs, and the only entries I saw were related to Scout. As a test, I decided to deploy 2 versions of the same app. One with Scout enabled, the other without. Memory usage grew very quickly and maxed out after a couple hours on the instance with Scout enabled. On the instance without scout, memory utilization remained stable. Both of these instances received no web traffic during that period. On instances with web traffic, we frequently see timeouts (requests exceeding 30s), presumably due to garbage collection pauses or swapping.
Is this behavior expected?
The text was updated successfully, but these errors were encountered: