spring-net icon indicating copy to clipboard operation
spring-net copied to clipboard

Detected Memory Leak with 1.3.2

Open Jeffery4000a opened this issue 1 year ago • 2 comments

Hi all, we notice the memory in our production enviroment keep increasing. We used ANTS profiler from RED gate to do memory profiling and notice there is a bunch of instance being created whenever there is a HTTP request came in and it never get collected and keep growing in gen 2 heap.

The instance will create base on a few on the entity framework.

The instance initialize from here https://github.com/spring-projects/spring-net/blob/spring-net-1.3.2/src/Spring/Spring.Web/Objects/Factory/Support/WebInstantiationStrategy.cs

Not sure if this is a known issue and hope there is someone can help here.

Jeffery4000a avatar Oct 25 '23 04:10 Jeffery4000a

https://github.com/spring-projects/spring-framework/issues/16554 could be due to this, may i know if the fix has been apply to .net version?

Jeffery4000a avatar Oct 30 '23 00:10 Jeffery4000a

The project is maintenance mode so if you could track the problem and create a PR to fix it, that would be great. Generally only 3.0 series is updated.

lahma avatar Nov 02 '23 18:11 lahma