本机代码中的高CPU使用率

时间:2018-06-08 14:00:06

标签: profiling cpu-usage azure-webjobs

我有一个在队列触发器上运行的.net C#Azure WebJob项目,它执行并行后台处理, 我的CPU使用率过高 我使用过Resharper的Performance Profiler和CPU消耗这样分解:

enter image description here

enter image description here

75%的CPU时间位于“没有已解析功能的本机堆栈跟踪”

实际用户代码中只有不到10%的CPU时间。

我怎样才能找到高CPU消耗的真正原因?

Web作业有此参数/设置:

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

Framework 4.7,使用最新版本的所有nuget引用。

任何想法如何诊断?

0 个答案:

没有答案
相关问题