Re: Marshal function leaking memory

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Paul G. Tobey [eMVP] (ptobey_no_spam_at_instrument_no_spam.com)
Date: 05/11/04


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..
>



Relevant Pages

  • Re: Finding stuff
    ... I've been trying to sort things out for when I go into hospital ... You kind of give stuff up as lost for good, ... Keenan and associates monitored the memory and anxiety or ... showed a significant decline in memory. ...
    (uk.people.support.depression)
  • Re: Finding stuff
    ... I've been trying to sort things out for when I go into hospital ... You kind of give stuff up as lost for good, ... Keenan and associates monitored the memory and anxiety or ... showed a significant decline in memory. ...
    (uk.people.support.depression)
  • Re: Finding stuff
    ... You kind of give stuff up as lost for good, ... In a 1998 study published in the American Journal of Obstetrics and Gynecology, Keenan and associates monitored the memory and anxiety or depression level of a group of women throughout pregnancy and in the postpartum period. ... While the length of material influenced the amount recalled for both groups, pregnant women in the third trimester showed a significant decline in memory. ...
    (uk.people.support.depression)
  • Re: "Never change a running system"
    ... > Probably due to some internal memory conflict... ... If the temporary files were corrupted in the ... > even the stuff which was in My Documents had been lost. ... > preferably not in My Documents, but on the hard disk which (can be accessed ...
    (sci.lang)
  • Re: board plug-in/add-on question (not quite sure how to describe it)
    ... >I think I understand his question, he's building a switched fbdimm memory ... provide a virtual "DIMM" of the same structure to the board. ... Then the buffer chip only sees a "DIMM" in the next step, ... Lost in dreams, Lost in aspirations, ...
    (comp.sys.ibm.pc.hardware.chips)