all groups > dotnet performance > april 2008 >
You're in the

dotnet performance

group:

Garbage Collector eats 100% of CPU



Garbage Collector eats 100% of CPU brianberns@gmail.com
4/22/2008 7:55:35 AM
dotnet performance: I have written a C# program that builds a move tree for the game of
Checkers. Such a move tree is naturally a very large data structure.
When I run the program on a 64-bit machine with 8GB of RAM, the move
tree (correctly) grows to several GB in size.

What I expect to happen is that the tree keeps growing, making use of
virtual memory once the available RAM is exhausted. However, what
actually happens is that the .NET garbage collector completely takes
over the CPU. The "% Time in GC" performance counter is pegged at
100%.

What can I do to tell the GC that my data structure is supposed to be
Re: Garbage Collector eats 100% of CPU Alvin Bruney [ASP.NET MVP]
4/26/2008 5:16:00 PM
Garbage collector does a pass when there is a memory pressure. I don't know
what else to tell you, an application that uses 8gigs of memory either has
special needs or requires a redesign.

--

Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $19.99
-------------------------------------------------------




[quoted text, click to view]
AddThis Social Bookmark Button