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 / New Users / June 2007

Tip: Looking for answers? Try searching our database.

Native Memory leak? (Private bytes increases resulting in worker process recycling)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
chen - 28 Jun 2007 23:02 GMT
While investigating a possible memory leak scenario in one our web
services, we ran into a peculiar situation where the "private bytes"
of the worker process continued to increase steadily while the .NET
CLR Memory counter '# Bytes in all heaps' remained constant. Pretty
much all the documentation that we've read so far states that this
points to native memory leak and is not a managed memory leak.

So to test this theory further, i created the basic Hello World web
svc & monitored the "private bytes" counter in perf mon/
ProcessExplorer. The app pool was set to recycle when the "Maximum
used memory (in MB)" set to 25. Sure enough, the private bytes used
showed a steady increase and caused the app pool to recycle! What
exactly is happening/leaking here? We've been struggling for the past
3 days to eliminate unnecessary obj allocations and reached a stage
where everything was commented but it still happened. Any ideas?

Config:
IIS 6.0 running on Windows Server 2003 (SP1).
Hello World web svc in .NET 1.1 as well as .NET 2.0 displays the same
behavior.

Thanks
chen
Pramod Anchuparayil - 28 Jun 2007 23:19 GMT
Have you tried using any .NET Memory Profilers? They allow you to snapshot
memory at different intervals and compare it.

Try something like http://memprofiler.com/ or
http://www.jetbrains.com/profiler/

I have used both and I like the former and was helpful in troubleshooting a
similar issue.

- Pramod

> While investigating a possible memory leak scenario in one our web
> services, we ran into a peculiar situation where the "private bytes"
[quoted text clipped - 19 lines]
> Thanks
> chen
Dave - 29 Jun 2007 13:21 GMT
you may want to install server 2003 sp2, there is at least one fix in there
about leaks of private memory.

> While investigating a possible memory leak scenario in one our web
> services, we ran into a peculiar situation where the "private bytes"
[quoted text clipped - 19 lines]
> Thanks
> chen

Rate this thread:







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.