Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / General / March 2008

Tip: Looking for answers? Try searching our database.

.net windows service using alot of Paged pool

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
RF - 10 Mar 2008 19:02 GMT
Hi

We have a windows service implemented in C# that will call some legacy VB6
COM objects. This is a memory intensive application that will create alot of
objects but looking at the memory and virtual memory footprint it will remain
under the 70meg level.  On the other hand the Paged pool will keep going up
and up.  What would be the cause of this?
Jeroen Mostert - 10 Mar 2008 19:58 GMT
> We have a windows service implemented in C# that will call some legacy VB6
> COM objects. This is a memory intensive application that will create alot of
> objects but looking at the memory and virtual memory footprint it will remain
> under the 70meg level.  On the other hand the Paged pool will keep going up
> and up.  What would be the cause of this?

Here's an excellent post on that, including instructions on how to diagnose it:

http://blogs.msdn.com/ntdebugging/archive/2006/12/18/Understanding-Pool-Consumpt
ion-and-Event-ID_3A00_--2020-or-2019.aspx


The most likely suspect is a handle leak. The stable way of solving that is
to find the leak and make sure all objects are properly released, but if the
leak is in the VB6 code you may be out of luck, and a periodic restart would
be the only way of "fixing" things.

In the .NET code, make sure you properly .Dispose() objects that implement
IDisposable, and use safe handles for unmanaged resources (see
http://msdn2.microsoft.com/en-us/library/fh21e17c.aspx). If the issue is
that COM objects are being kept alive when they shouldn't, check if you're
keeping references to them that prevent garbage collection. You can also try
explicitly releasing the objects through Marshal.ReleaseComObject(),
although this should be necessary only if objects need to be freed in a
specific order.

Signature

J.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.