influxdb-csharp icon indicating copy to clipboard operation
influxdb-csharp copied to clipboard

Heavy lock contention in multithreaded environments

Open amoerie opened this issue 5 years ago • 0 comments

We use this library in a heavily multithreaded environment, and noticed that in heavy loads, this library introduces very serious lock contention issues in the IntervalBatcher class, which locks around the internal queue when enqueuing or emitting.

This eventually leads to 100% CPU usage on our servers, each of them waiting for this Influx client to release its locks.

amoerie avatar May 14 '19 07:05 amoerie