[Mono-dev] Memory leaks

Paolo Molaro lupus at ximian.com
Thu Sep 15 13:15:27 EDT 2005


On 09/15/05 Thorsten Schuett wrote:
> I "ported" a simulation from Visual C# beta 2 to mono this week. You can't 
> really call it porting, because I only had to remove references to Stopwatch. 
> But anyway, thanks to all of you for making it so easy.
> 
> It is a long running application, therefore I used an IA64 at work. Almost 
> everything worked without any hiccups. But after about 12h the memory 
> consumption was up to 4GB. In the beginning it needed only about 50MB. In my 

Set the MONO_GC_PRINT_STATS env var:

MONO_GC_PRINT_STATS=1 mono program.exe

and see if it's the GC heap that increases so much. If it doesn't
crease beyond a reasonable amount, we may have an unamanged memory leak.
Try running also on x86 and see if you still get the leak.
If it doesn't happen, it may be an unmanaged memory leak in the port.

lupus

-- 
-----------------------------------------------------------------
lupus at debian.org                                     debian/rules
lupus at ximian.com                             Monkeys do it better



More information about the Mono-devel-list mailing list