-
-
Notifications
You must be signed in to change notification settings - Fork 229
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
100% CPU and server crashes after connecting 10k clients #66
Comments
Yes, this is perfectly "normal", and described in #60. PR is welcomed. |
@mcollina It's normal that Aedes is unable to handle 10k connections? Am I doing something wrong? Or is the MemoryPersistence unable to handle 10k connections? |
It's normal that it crashes with
wrapping the callbacks in |
I ended up going with mqtt-connection since I don't need any kind of persistence. Seems to work well so far for me. |
Perfect, I'm closing this now. |
Hey, I'm facing a similar issue after 15k connections.The process becomes unresponsive for quite some time and then starts working again. I'm not sure if |
@GavinDmello with the same error? what is the memory usage? Can you produce a script to reproduce artificially? |
The server doesn't crash in my case and memory is well under control. It's just the CPU which is cranking up to 100 % and stays there with nothing happening(no logs) and comes back to normal after some time. |
@GavinDmello if I can reproduce, I can help fixing it. Tools like http://npm.im/0x, dtrace, perf, etc, are built to solve those kind of issues. |
related to #88 |
Hi @mcollina =)
Getting a strange crash and CPU halt with the latest Aedes (0.21.0):
Before the server crashes, the process consumed 100% CPU and is completely unresponsive.
This happens after about 10k clients connect. Keepalive interval is set at 5 minutes. Using MemoryPersistence.
Most clients do not subscribe to anything, by the way.
Oh, and I set the
concurrency
to 10,000. Didn't help.The text was updated successfully, but these errors were encountered: