-
Notifications
You must be signed in to change notification settings - Fork 52
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
High CPU load due to a single misbehaving client #143
Comments
I did a Here's the functions with the highest "cumtime":
Does that look as expected? Not sure. The number of calls to Here are the most-called functions:
The trace file says it was running for 200s, so 3000 calls does not seem excessive at all to me. |
When the high load starts, I am seeing a ton of wakeups in our main epoll loop, that all have event flag |
We occasionally see a client misbehave and establish multiple connections at the same time to all our servers. For some reason, even when there are just around 20 connections per 10 minutes, this causes 100% CPU load by tunneldigger. Python is not the most efficient language, but this seems eccessive -- I'd like to better understand where in the broker all that CPU time is spent. Unfortunately, so far I found no good way to do such an analysis for python (what I am looking for is something like callgrind).
The text was updated successfully, but these errors were encountered: