AppDomain memory leak

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
Report Content as Inappropriate

AppDomain memory leak

John OCallaghan
This post has NOT been accepted by the mailing list yet.

Hi All

I am using Mono version and have noticed a memory leak each time I create/unload an AppDomain. I have managed to localise the leak down to running the code from this bug report:

Basically run AppDomain Create/Unload in a tight loop with garbage collection.

Looking at the heap usage I can see it grow by about 1MB on each Create/Unload. Eventually it will oom.

Note: I am running mono in a docker container and am using the cAdvisor docker to watch the heap usage on my mono container. I dont think that should have an effect but thought it was worth mentioning.

I have tried using both sgen and boehms but am seeing the same behaviour with both.

Has anyone else seen this?
Many thanks!