-
Notifications
You must be signed in to change notification settings - Fork 83
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
Increasing CPU when using thread pool statistics #49
Comments
What version of .NET 3.1 is the container using? Version < 3.1.5 has a memory leak that can cause this CPU consumption you're experiencing (see this MR dotnet/runtime#35924). |
We are using 3.1.10.
|
Would it be possible to share the full trace you collected with me? |
I sent you an email. |
So that trace was collected with |
This does look similar to the CPU overconsumption issue that we saw in earlier .NET core versions, not sure why it's popping back up. I need to dedicate some time to look at this properly at some point. |
I found the same problem!Don't know how to solve it. |
This issue duplicates #6, so closing it. V4 should resolve the issues described here. |
This might be related to #6, but I'm not sure as .net core 3.1 is used.
We run prometheus-net.DotNetRuntime in an alpine linux docker container with dotnet core 3.1. We noticed the CPU usage is slowly increasing over time. The situation significantly improves when thread pool stats are not collected (see plot below), but even then there still is a measurable increase in CPU usage. There doesn't seem to be a measurable increase in memory consumption.
Initialization with thread pool stats:
Initialization without thread pool stats:
We also did some CPU profiling on the affected system, but unfortunately 99% of the CPU time is spend in unmanaged code.
Any ideas how the increase in CPU could be avoided while still collecting metrics? Or any idea how to further investigate this issue?
The text was updated successfully, but these errors were encountered: