Throughput decreases when receiving a large number of messages
See original GitHub issueWhen receiving a large number of messages over a short period of time (e.g. 250,000 messages over a period of 2 minutes,) I am seeing very high CPU usage (95%+) and memory usage (3 GB+.) The server initially accepts messages quickly but then slows down to the point of accepting only one message every few seconds.
Profiling showed contention related to TaskExtensions.WithTimeout()
's usage of Task.Delay()
.
I’m using .NET Core 2.0 on Windows 10 x64. My application is doing almost nothing - just calling Interlocked.Increment()
to track the amount of messages it receives, so I don’t suspect any code in my application.
Issue Analytics
- State:
- Created 5 years ago
- Comments:12 (8 by maintainers)
Top Results From Across the Web
Latency vs Throughput – Understanding the Difference
If the majority of messages are delivered successfully then throughput will be considered high. In contrast, a low rate of successful delivery ...
Read more >Service Bus Premium and Standard messaging tiers
Sending large messages will result in decreased throughput and increased latency. While 100 MB message payloads are supported, it's recommended ...
Read more >Network throughput - Wikipedia
Network throughput refers to the rate of message delivery over a communication channel, such as Ethernet or packet radio, in a communication network....
Read more >What is throughput? | Definition from TechTarget
Throughput is necessarily lower than bandwidth because bandwidth represents the maximum capabilities of a network rather than the actual transfer rate. A ...
Read more >Optimizing Kafka Performance
Increasing the batch size of messages increases throughput, and combining this with compression makes sure that a large number of messages are being ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sorry, I forgot to merge. Have done it now.
No, this is resolved.