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 / Performance / April 2004

Tip: Looking for answers? Try searching our database.

GC locks up 20 minutes

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Wayne Malkin - 22 Apr 2004 01:30 GMT
We have seen two occurrences of a strange problem where the GC starts
consuming 100% of CPU for an extended period of time. One case was 5
minutes, the other was 20 minutes. In both cases it eventually finished and
the system recovered.

The total heap sizes were around 350M - not too excessive - and I believe
around 5-6 million objects were in the heaps.

Has anybody seen similar behavior?

Or, any pointers as to how to diagnose this?

We are set to try collecting dump files of the ASPNET process next time this
happens, but I would like to find something more. It's hard to believe this
has never happened to anyone else before, but I can't find anything similar
anywhere.

Thanks for the help,

Wayne
Niall - 22 Apr 2004 06:28 GMT
If the memory pressure is getting high and the GC is forced to go to gen 2
collections, running a GC with that size heap will be costly. I don't know
if I'd expect several minutes, but it will be bad.

Check that you aren't getting GCs deliberately induced in a loop somewhere.
Check out the Induced GCs counter in perfmon and check it against the number
of gen0 - 2 collections. If you find that there are a lot of induced GCs,
debug the process and put a breakpoint in System.GC.Collect and see who's
responsible...

Niall

> We have seen two occurrences of a strange problem where the GC starts
> consuming 100% of CPU for an extended period of time. One case was 5
[quoted text clipped - 16 lines]
>
> Wayne
"Chris Lyon [MSFT]" - 23 Apr 2004 22:18 GMT
Hi Wayne

Take a look at Rico Mariani's weblog (http://weblogs.asp.net/ricom/) for advice on analyzing and correcting performance issues, particularly related to long GC times.  

Based on the brief description you've given, it sounds like there is a large number of (large) objects in generation 2, that when collected, will hurt performance.  Consider
resource pooling and caching policies as described in Rico's blog.

Thanks
-Chris

--------------------
>Reply-To: "Wayne Malkin" <wmalkin@filenet.com>
>From: "Wayne Malkin" <wmalkin@filenet.com>
[quoted text clipped - 33 lines]
>
>Wayne

Signature

This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note:  For the benefit of the community-at-large, all responses to this message are best directed to the newsgroup/thread from which they originated.


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.