Created attachment 15534 [details]
Valgrind memcheck output
We are experience major unmanaged memory leaks (3 GB in 10 hours) for our Linux backend service running on Mono 4.2.2. The managed heap stays consistent around 50 MB. I am using valgrind to find the source(s), but it reported so many leaks that I'm not sure which are real and which are false positives.
Zoltan Varga provided a fix for one of the leaks I mentioned on the mono-devel mailing list (http://lists.ximian.com/pipermail/mono-devel-list/2016-March/043575.html), but after applying it, over 19,000 instances of leaked memory are still reported after just starting up our app and letting it sit idle for a couple minutes.
I've attached the latest valgrind output file.
Most of these valgrind issues have now been resolved in Mono 4.4, and so this issue can be closed. This turned out to only accounted for a small amount of our service's overall memory leak.
The actual issue that is causing us to grow so large so quickly looks to be a Mono bug in not GC'ing DynamicMethods fully and a new issue has been submitted: https://bugzilla.xamarin.com/show_bug.cgi?id=40691