Garbage collector
If the garbage collector is working overtime, it may consume a lot of CPU cycles. Check the counters shown in Chapter 3, Memory to see if this is the case, especially % Time in GC. To see how to check a counter in perfmon
, refer to the Pinpointing bottlenecks section, the Thread usage subsection in chapter 2.
Category: .NET CLR Memory | |
---|---|
% Time in GC |
The percentage of time spent in the GC since the end of the last collection. A value over 10 percent indicates a high allocation rate, or a high proportion of objects surviving garbage collections. |