EntityFramework-Extensions icon indicating copy to clipboard operation
EntityFramework-Extensions copied to clipboard

`PublicExtensions` static dictionaries are filling up

Open alexeygnetko opened this issue 4 months ago • 0 comments

Hello,

Description

We found that static dictionaries from the PublicExtensions class are leaking in our project. They're getting filled up till we get Out of Memory kill.

Could you let me know if you've seen this issue?

Please see the screenshot below. The dictionaries grow to approximately these sizes before OOM kill (we have a memory limit set to 4GB in Kubernetes):

# from PublicExtensions.cs
EntityTypeZInfoDict: 4174 items
PropertyZInfoDict: 36049 items
ModelZInfoDict: 604 items
image

I don't have a reproducible code example at the moment, but I will provide it when I have it.

Exception

No exceptions.

Further technical details

  • EF version: [EF Core v7.0.16]
  • EF Extensions version: [EFE Core v7.18.1]
  • Database Server version: [SQL Server 2018]
  • Database Provider version (NuGet): [Microsoft.Data.SqlClient v5.1.4]

alexeygnetko avatar Mar 14 '24 11:03 alexeygnetko