Home:ALL Converter>High CPU Usage in in Native code

High CPU Usage in in Native code

Ask Time:2018-06-08T22:00:06         Author:Burnsys

Json Formatter

I have a .net C# Azure WebJob Project that runs on a Queue Trigger, it does parallel background processing,
I am having excessive CPU usage.
I have used Resharper's Performance Profiler and CPU consumption Breaks up like this:

enter image description here

enter image description here

75% of CPU time is in "Native Stack traces without resolved functions"

Less than 10% of CPU time is in actual User code.

How can i found what is the real cause of high CPU consumption?

Web job have this parameters / Settings:

QueueBatchSize = 8
NewBatchThreshold = 4
ServicePointManager.DefaultConnectionLimit = Int32.MaxValue
ThreadPool.SetMinThreads(250, 250)

Framework 4.7, all nuget reference using last versions.

Any Ideas how to diagnose this?

Author:Burnsys,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/50762340/high-cpu-usage-in-in-native-code