influxdata / influxdata/influxdb-client-csharp

Out Of Memory when writing lots of datapoints

Open
#301 9 comments 0 reactions 1 assignee Claimed by @bednar View on GitHub
bug enhancement
Dominant language
C#
Stars
377
Forks
93
Avg merge
9m
Merged PRs (30d)
2

Description

Hi,
We are having an application that crashes with an OutOfMemory exception.

We are having trouble when writing data to Influx with the "WritePoint" method.
We are writing ~2000 datapoints per 10ms per thread(there are 2 threads at this point in time writing data).
When writing these datapoints memory keeps piling up by 10mb per minute and never going down untill we stop writing for a short while or eventually hit an OutOfMemory.
Setting the FlushInterval higher seems to migitate the problem, but memory still increases(albeit at a slower rate).
Using only one thread for writing data also migitates the problem, but it takes 3 days to run out of memory.

We are using:
Client version: 4.0.0.0
InfluxDB Version: 2.1.0
Platform: Windows 10 (different systems with different specs).
FlushIntervals used: 10, 500, 1000, 2000.

Would it be possible to improve the API that the API notices that it cannot handle the load?

![InfluxOutOfMemory](https://user-images.githubusercontent.com/102732965/161043352-d180976e-cadb-4f6c-a3b5-21ebf50e403e.png)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.