[Mono-list] Garbage collection and memory usage

Miguel de Icaza miguel at ximian.com
Fri Apr 7 00:37:47 EDT 2006


Hello,

> Assuming this is the case, what on earth can I do to troubleshoot this?
>  Is there something we can do in code to help the GC? I thought the
>  whole point of languages like C# was to get /away/ from awful days of
>  malloc + free'ing memory like in C :(

Thanks for posting the message, we need a few more data points here.

You mention that the application will go down within twenty minutes.  By
the time it goes down, what is growing out of proportion?   Is it the
Apache process with mod_mono or is it the Mono process that runs
mod-mono-server.exe?

You mentioned that requests were being received, but they were not
getting a reply.  What was the size of Mono then?

Am curious in this particular case if this is a case of Mono leaking
memory or if this is a case of Mono running out of threads to process
responses.

Your initial description sounds like Mono is hanging, not that Mono is
leaking.

This could be caused by a number of reasons: the requests might not be
completing;   You might be using some library that has a threadpool
leak;  You might be starving and deadlocking the threadpool internally.

Miguel.


More information about the Mono-list mailing list