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
Out-of-memory issue #48
Comments
@oberstet Can you elaborate on this bug or let me know which version is most likely stable for this? I just saw this with version 0.13.2. I had a mostly stock config file (i setup a second realm and gave generic permissions to url path), no extra workers or containers running. I had one client connected (to test stability of both sides) not really doing anything for almost 7 hours before i used up the memory. Killed process 26203 (crossbar-worker) total-vm:226008kB, anon-rss:108436kB, file-rss:32kB |
@pataelmo can you also post versions of the libraries you were using? e.g. Twisted etc? ( |
Crossbar.io : 0.13.2 |
Do you guys have a standard way of searching for memory leaks? I did a quick search and found some tools, but didn't want to try and build my own wheel if one was available. Happy to inject some code to try and find the source on my end if you can't easily reproduce this. |
I took another stab at this another way. While it's unfortunate that the memory gets that high, it's definitely not a real leak. I'm sure most of the issue I saw here was due to the way that Python manages memory. I was running this on a cloud VM with only 512MB of RAM along with nginx and mysql. Once I bumped the memory limit upto 1GB I now don't see this problem on 2 separate instances anymore. @meejah Thanks for replying and I assume looking into this, even though it was nothing. |
Are you using TLS? Do you know how many connections you had/have? Also, PyPy tends to use a lot more memory than CPython (but also tends to be much faster!). Also, PyPy doesn't do the "deterministic immediate collection" of memory as happens on CPython when a refcount goes to 0 (and there's no cycles). Anyway, the point is if you are more constrained on memory it could be the using CPython (and taking a bit of a speed hit) is the right strategy. Thanks for following up! |
Tonight, a Clandeck worker process was killed by Linux out-of-memory manager.
Crossbar log:
Linux kernel log:
It's unclear what was causing the run away of memory consumption ... needs investigation.
Background:
The text was updated successfully, but these errors were encountered: