Azure / azure-webjobs-sdk

Azure WebJobs SDK
MIT License
739 stars 358 forks source link

Default `ServiceBusOptions.MaxConcurrentCalls` Property Leads to Poor Debugging Experience #3113

Open Mike-E-angelo opened 1 week ago

Mike-E-angelo commented 1 week ago

Hello Azure WebJobs SDK Team,

I recently found an issue with the ServiceBusOptions.MaxConcurrentCalls Property and wanted to be sure you are aware of it.

Consider developing on a CPU with 32 processors (e.g. Ryzen 9 5950x) and having 20 WebJobs in an application. That is over 10K concurrent calls. When attempting to debug in Visual Studio, Diagnostic Tools freezes up and there are a bunch of GC calls.

I have reported this to the Visual Studio team here: https://developercommunity.visualstudio.com/t/Insane-Amounts-of-Unmanaged-Memory-Utili/10776957

Reporting here also, for awareness and potential collaboration.

Setting this value to 64 makes this operate as expected. However, the incredible amount of GC sweeps and frozen Diagnostic Tools interface is cause for concern.

Please let me know if you require any further information and I will assist you.