How long does the GC take?

We have a theory that gen 2 GCs can introduce delays in an application, is there a way to determine how long GCs take?

+6
garbage-collection clr
source share
3 answers

There are performance counters for the total time spent in the GC, and various information on the number of collections, heap sizes, etc. See this article for more details.

If you just want to take a quick look at the application, use the process explorer . It can show most of the .NET statistics for a process.

+5
source share

.NET 4.0 has an ETW for the GC, which can help in profiling the time spent on the GC.

Here is an answer similar to your question Can you reproduce this 64-bit .NET 4 GC error?

+2
source share
0
source share

All Articles