Re: Memory issue with COM+ .NET Managed Component

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Marcelo Dabanovich Lavio (mlavio_at_uol.com.br.no.spam)
Date: 08/12/04


Date: Thu, 12 Aug 2004 01:26:58 -0300


Hi, Jon...

I also had too much memory being used by a COM+ app, but it had queued
components in it, and was not doing disk IO by itself, but it was doing it
under the covers through MSMQ.

My thought is that my problem may be related, in someway, to what is
described here:
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q312118

I think that, maybe, it can be your case, also...

This may sound stupid, but try to add some calls to System.GC.Collect() in
the middle of your processing... This solved my problem, but I'm not sure
why. Maybe it's because when worker(s) thread(s) is(are) blocked(s) in calls
to Collect(), the finalizer thread described in the article is abled to run
and finish it's work.

Hope this helps,
Marcelo

"Jon Snow" <seedollarsign@hotmail.com> wrote in message
news:91032e3.0408111832.55e18da6@posting.google.com...
> I have a component that I've writen in C# that does a lot of disk
> reading and processing. What I'm noticing is that when I have the DLL
> as a part of a console test app, my memory usage stays rock solid.
> It'll jump to about 58MB of RAM after processing 750MB of files off
> the disk. When I plug the same DLL into COM+, I'm noticing that my
> RAM usage goes up with every read and is never being freed. For the
> same number of MB read from disk, my RAM usage runs up to a gigabyte.
> I've profiled the test console application in .NET Memory Profile, and
> it looks like I'm doing a very clean job of disposing of my objects
> (most everything implements the IDisposable interface). So I'm not
> sure what the problem is. Any suggestions?
>
> Thanks,
>
> Jon



Relevant Pages

  • Proposed Assembler Commands
    ... ACM Automatically Clear Memory ... BKCRDR Backspace Card Reader ... BKSPD Backspace Disk ... EIAO Execute In Any Order ...
    (sci.electronics.design)
  • Re: Att. Alex Nichol -VM cont.
    ... I find documentation that says a 4kb page in memory is written to the hard ... manner that a 4kb memory page is equal to a 4kb cluster written on the disk". ... So where is the basis for saying since 4kb paging in memory that 4kb clusters ...
    (microsoft.public.windowsxp.general)
  • Re: Slow performance
    ... Leaving your computer on 24/7 means that if any programme has a memory ... The Disk Defragmenter report shows you have minimal free disk space. ... select Properties, General, Advanced and check the box before Compress ... Volume fragmentation ...
    (microsoft.public.windowsxp.perform_maintain)
  • Re: Slow performance
    ... I realize that the pagefile usage is excessive and I need to reduce memory ... I've never messed with those settings before. ... Peak are greatly in excess of the installed RAM. ... The Disk Defragmenter report shows you have minimal free disk space. ...
    (microsoft.public.windowsxp.perform_maintain)
  • Re: teaching a child - console or GUI
    ... I use a RDBMS to reuse existing code and optimizations. ... >>And loading them in a system under load (with constant disk io) is worse ... quality stuff), and quality power supply, quality memory etc. ... > lists of pointers on disk, extract files of frequent search fields in ...
    (comp.lang.pascal.delphi.misc)