[Mono-dev] Memory Leak with mono

Rodrigo Kumpera kumpera at gmail.com
Thu Aug 11 17:34:45 UTC 2016


What version of mono are you running?

Have you ran your test for an extensive period of time that would let the
GC to check whether there's an actually leak?

I altered your test to run the test program in an infinite loop and
monitored memory consumption on mono 4.4.1 and noticed no leaks after a few
minutes of it running.

The fact that heapshot report objects being allocated doesn't mean there's
a leak, as those could be temporary objects or runtime allocated objects.

You need to run it for long enough time and then collect memory usage.

--
Rodrigo




On Thu, Aug 11, 2016 at 1:49 AM, techi eth <techieth at gmail.com> wrote:

> I am observing memory leak when I called C function from C#.I am running
> my test on Linux machine (Ubunut14.04) with mono 4.2.2.
>
> When I run heap shot profile I am getting unknown object.
>
>
>
> Please find attached test file used for testing. I have attached snapshot
> of heapshot memory snapshot.
>
>
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.dot.net
> http://lists.dot.net/mailman/listinfo/mono-devel-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dot.net/pipermail/mono-devel-list/attachments/20160811/ff592b22/attachment.html>


More information about the Mono-devel-list mailing list