[Mono-dev] Memory leaks
schuett at zib.de
Mon Sep 19 05:50:46 EDT 2005
On Friday 16 September 2005 15:34, Thorsten Schuett wrote:
> On Thursday 15 September 2005 19:15, Paolo Molaro wrote:
> > 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
The following works now for me:
GC_PRINT_STATS=1 mono program.exe
I took a snapshot ~7 min after starting the run.
ps shows the following:
8496 bzcschut 25 0 805m 750m 6992 R 99.8 18.6 6:47.62 mono
So 805m virtual size and 750m resident size. GC_PRINT_STATS latest stats were
Initiating full world-stop collection 780 after 236960208 allocd bytes
--> Marking for collection 780 after 236960208 allocd bytes + 16891392 wasted
Collection 779 finished ---> heapsize = 762986496 bytes
World-stopped marking took 34 msecs
Complete collection took 78 msecs
Can somebody help me interpreting the results? Are there 762MB of objects
live? Or are there 236MB of objects live?
More information about the Mono-devel-list