Skip to content

Bug: <Memory Leak persist after update 1.13.1 > #1142

Open
@mchinchilla

Description

@mchinchilla

Bug Description

Hi Michael,
I'm using RepoDb.PostgreSql.BulkOperations version 1.13.1, this application parse a lot of CDR's files and insert in a PostgreSql database, but when my application execute this line:

await db.InsertAllAsync( tableName: "schema.table", recordsFinal, batchSize: insertBuffer, transaction: transaction );

Memory usage increase and never decrease, No matter if I force to GC to collect and clean.
This application runs in a Debian Linux Server with 32 GB and postgresql 13.x, I'm using the latest version of RepoDb.PostgreSql.BulkOperations and dotnet core 6.0.
When the applications usage gets the 32 GB of RAM, the server starts to swap and the application stops working.

And it seems that it is incremental, for example it starts with 100 MB and for each file it processes it increases exponentially 200MB, 400 MB... 3 GB, etc.

Images
image

Library Version:
Version: RepoDb.PostgreSql.BulkOperations version 1.13.1

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpriorityTop priority feature or things to dotodoThings to be done in the futurewontfixThis will not be worked onworking-as-expectedThe reported issue is working as expected.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions