-
Notifications
You must be signed in to change notification settings - Fork 494
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
Change Feed Pull Model Memory Issues #2087
Comments
Likely caused by #1933 |
@abranaugh please contact support if this is impacting your production so a support ticket is created and will ensure the issue is properly prioritized. |
@abranaugh any chance you can provide a memory dump or perf trace to help root cause the issue? |
@j82w I can provide a memory dump, how would you like me to provide that to you? When I dumped out the version running 3.15.2 - preview, it was about 1.8gb. I don't want to post it publicly on github due to potentially exposing our connection strings and whatnot. I can open up a support ticket and attach it to that if that is easiest. |
Please open a support ticket and attach the memory dump as it is the easiest way. |
I also encountered this problem using the latest preview version ( |
Fix in PR #2129 |
Describe the bug
We are trying to update our SDK version from 3.9.1 - preview to the latest preview version. We use the change feed pull model. We noticed when we updated our version to 3.15.2 - preview and deployed, our machines quickly ran out of RAM. Looking at the logs, we got up to about 23gb of RAM in use and then crashed. I was able to reproduce locally and noticed that the RAM on my machine quickly ballooned.
I put together a console app to verify the behavior wasn't anything in our code, the only dependencies in the console app is to Cosmos SDK. In my test, I read off the change feed for 10 minutes and monitored the diagnostics in VS2019. I tested with various versions and took screenshots of the memory usage in the diagnostic session. These tests were against a collection that is about ~300GB
3.15.2 - Preview - Ended up at around 1.8gb for the 10 minutes
3.15.1 - Preview - 900mb in 10 minutes
3.15.0 - Preview - 600mb in 10 minutes
3.14.0 - Preview - 150mb in 10 minutes
3.13.0 - Preview - 150mb in 10 minutes
3.9.1 - Preview - 150mb in 10 minutes
Here is the code for the methods I ran:
3.13 and up
3.9.1 - Preview
Environment summary
SDK Version: 3.15.0 - Preview, 3.15.1 - Preview, 3.15.2 - Preview
.Net Core 3.1
The text was updated successfully, but these errors were encountered: