Re: Memory issue with COM+ .NET Managed Component
From: Marcelo Dabanovich Lavio (mlavio_at_uol.com.br.no.spam)
Date: 08/12/04
- Next message: Marcus Mac Innes: "RE: Broadcasting SOAP messages using WSE 2.0"
- Previous message: Nathan Ke: "Re: StartNavigation vs StartOpenNavigation"
- In reply to: Jon Snow: "Memory issue with COM+ .NET Managed Component"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: Marcus Mac Innes: "RE: Broadcasting SOAP messages using WSE 2.0"
- Previous message: Nathan Ke: "Re: StartNavigation vs StartOpenNavigation"
- In reply to: Jon Snow: "Memory issue with COM+ .NET Managed Component"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|