Re: Marshal function leaking memory
From: Paul G. Tobey [eMVP] (ptobey_no_spam_at_instrument_no_spam.com)
Date: 05/11/04
- Next message: Chris Tacke, eMVP: "Re: GetTotalMemory, GlobalMemoryStatus"
- Previous message: JOhnC: "How to get path to Templates folder?"
- In reply to: PBS Productions: "Re: Marshal function leaking memory"
- Next in thread: PBS Productions: "Re: Marshal function leaking memory"
- Reply: PBS Productions: "Re: Marshal function leaking memory"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 11 May 2004 12:36:25 -0700
That's a number that sounds like GC overhead (tables of managed object slots
in free memory or something). 4k is probably one page on your hardware and
is the smallest allocation size that you can really have.
Paul T.
"PBS Productions" <pbsproductions_nospam@hotmail.com> wrote in message
news:0ma2a0t8lhp65d2h0dlmgmflp3kjgu908t@4ax.com...
> Alex,
>
> I think that you've got a point there. I gave the GC some time to
> cleanup every second or so and most of the memory is cleaned up.
> However each time a small portion of the memory is lost. To give some
> figures
>
> A loop of 2000 consumes about 200K. After some seconds most of it is
> given back but about 4K is still lost and never given back no matter
> how long you wait.
>
> Thanks,
> Jo.
>
>
>
> On Tue, 11 May 2004 15:26:47 -0400, "Alex Yakhnin [MVP]"
> <a.yakhnin@online.att.net> wrote:
>
> >
> >As far as I can see, every time the ToString() is called the new instance
of
> >the String is created and assigned to your variable S, since it's all
> >happening inside of the tight loop it nevers gives a chance the GC to
clean
> >up..
>
- Next message: Chris Tacke, eMVP: "Re: GetTotalMemory, GlobalMemoryStatus"
- Previous message: JOhnC: "How to get path to Templates folder?"
- In reply to: PBS Productions: "Re: Marshal function leaking memory"
- Next in thread: PBS Productions: "Re: Marshal function leaking memory"
- Reply: PBS Productions: "Re: Marshal function leaking memory"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|