sillsdev / TheCombine

This is a tool for supporting the rapid word collection workshop and post workshop clean-up
https://sillsdev.github.io/TheCombine/
MIT License
15 stars 13 forks source link

Memory leak in SIL.DictionaryServices.Lift.LiftWriter #880

Open johnthagen opened 3 years ago

johnthagen commented 3 years ago

Our usage of <PackageReference Include="SIL.DictionaryServices" Version="7.0.0-alpha0822"> SIL.DictionaryServices.Lift.LiftWriter leaks memory each time a project is exported (~2-10MB?). This seems to leak logarithmically, as in, if you export the same project over and over it leaks less memory each time. It's unclear what can be done. It may require upstream fixes.

Related to #811, follow on to #688

imnasnainaec commented 11 months ago

Following https://github.com/sillsdev/TheCombine/issues/688#issuecomment-687304946...

Locally running in Docker/Kubernetes at bb8d5b6b7c55fde8c411ed0a530a90133274b6a6. Created a project with import https://github.com/sillsdev/TheCombine/blob/master/Backend.Tests/Assets/Natqgu.zip (11570 entries, no audio). Measurements below are backend container memory usage as reported by docker stats.

After login:

After creating project with (2.3 MB) import:

After each of 10 successive (1.4MB) exports: