Skip to content

Out Of Memory when writing lots of datapoints #301

Open
@CordisSSegers

Description

@CordisSSegers

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions