-
Notifications
You must be signed in to change notification settings - Fork 177
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 steadily increases without recovery in Electric instance #2229
Comments
Hi, we've seen this happen before. We think it is related with how Elixir manages processes memory. We're gonna work on a fix ASAP. |
Please could you try something for us? We think garbage collection is causing the issue so please could you try running it manually: On the machine with the electric docker image running run
(Use This will get you into an elixir shell, where you can run:
It's worth running this 5 times to get the memory use right down. Let us know if this helps, if it does we can automate the garbage collection to solve your issue. |
Another thing to try is to let electric use all 2GB of your container's RAM and see what happens. If our hypothesis is correct then hitting the container limit will cause a garbage collection and so electric should flatline at 2GB memory use and continue to operate normally. If you'd like it to flatline at a lower value, the container's memory can be restricted with the |
Ran it a few times here And not seeing any memory reducing here |
Going to try something like 1.5g |
We're experiencing steadily increasing memory usage in our Electric instance that doesn't recover until restart.
Current behavior:
Environment:
Theory:
Reproduction steps:
Current workaround:
Manual restart of the instance clears the memory back to normal levels.
The text was updated successfully, but these errors were encountered: