-
Notifications
You must be signed in to change notification settings - Fork 10.4k
The asp.net core application loads the CPU even after a user requests are terminated. #3446
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
Comments
@sebastienros - thoughts? |
I thought that it depends on bug in System.IO.Pipelines package like issue in Kestrel |
@neyromant Did you update to .net core 2.1.4? |
@davidfowl Not yet, I just updated System.IO.Pipelines package. |
@sebastienros any ideas on how to diagnose this? |
@neyromant The same problem with yours - even no any request the asp.net core application still load high CPU, aspnet/KestrelHttpServer#2937 |
It could be the finalizer thread that is getting blocked. It would run even without any requests.
|
Can you take a memory dump? That might help as you can look at the finalizer queue that way. |
Yes |
Yes, of cource. My dump is here: |
Is this gcore dump or did you use https://github.com/dotnet/coreclr/blob/21f94f2be12e16bb36187d40c2fa82af9ebfd469/Documentation/botr/xplat-minidump-generation.md? |
This is gcore dump:
|
Yep, I figured from the size 😄. This was collected on CentOS 7.4 yeah? |
Yep, it is CentOS 7.4 |
I can't get this dump to load properly: Try “readelf -a dump1.17928” and you will get some error messages:
|
I'm sorry. I will check or I will soon make a new dump. |
@davidfowl, I am sorry for long answer. |
We have the same issue and we use HttpClient. |
@mmikirtumov Please consider using the HttpClientFactory for that. It will automatically follow the best practices when working with a |
Thank you Patrick. I know that this is good practice. I am trying to figure it out what is the problem currently in my production server. And can HttpClient cause this issue? |
We are use the HttpClientFactory. |
@neyromant |
@Vlad294 Unfortunately no |
Thank you for contacting us. Due to a lack of activity on this discussion issue we're closing it in an effort to keep our backlog clean. If you believe there is a concern related to the ASP.NET Core framework, which hasn't been addressed yet, please file a new issue. This issue will be locked after 30 more days of inactivity. If you still wish to discuss this subject after then, please create a new issue! |
Uh oh!
There was an error while loading. Please reload this page.
Hi,
My asp.net core application is builded on .net core 2.1 and launched under CentOS 7.4 (Outside the Docker container).
During the working day, this application has a high load. At night, when requests from clients stop, the application continues to use a lot of CPU. This stops only if I restart the application.
I searched for the blocking code manually and using Ben.BlockingDetector. (Question about this here: benaadams/Ben.BlockingDetector#9) But I did not find anything.
I collected and tried to analyze metrics using perfcollect
These metrics are taken at night, when there are no requests from clients, but the application uses 206% of the CPU (The machine has 4 cores):
My metrics are available here: (my application's name is current_app.anm)
https://drive.google.com/open?id=1SHTJqfWUMMOECcDUKnz37st1r4u_P4-j
Can anyone tell me what could be causing this problem?
Thank you in advance for any response.
The text was updated successfully, but these errors were encountered: