Quantcast

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 4.8.0.524 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:
https://bugzilla.xamarin.com/show_bug.cgi?id=30849

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!
John
Loading...