Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How long does a GC take?

We have a theory that gen 2 GCs could be introducing delays into an application, is there a way to profile how long GCs take?

like image 394
rjdevereux Avatar asked Feb 23 '11 21:02

rjdevereux


People also ask

How long does gas chromatography take?

Either gaseous or liquid samples, as small as several micro-liters, can be analyzed. And the whole process of GC/MS analysis takes about one hour or less, depending on the complexity of the compound to be analyzed.

Why does GC take so long?

CPU Usage – And it all comes down to CPU usage. A major symptom of continuous GC / Stop the World events is a spike in CPU usage. GC is a computationally heavy operation, and so can take more than its fair share of CPU power. For GCs that run concurrent threads, CPU usage can be even higher.

What happens full GC?

Full GC is an important phase in the garbage collection process. During this full GC phase, garbage is collected from all the regions in the JVM heap (Young, Old, Perm, Metaspace). During this phase, the JVM is paused.

How long does a GC column last?

Most columns, if run under reasonable conditions, will last at least a year. Those with very clean samples that run their columns at oven temperatures considerably below the columns' maximum operational temperatures may get up to five years of operation.


2 Answers

There are performance counters for the total time spent in GC and various info about number of collections, heap sizes and so on. See this article for detailed instructions.

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

like image 78
TToni Avatar answered Oct 21 '22 03:10

TToni


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

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

like image 40
Naveen Avatar answered Oct 21 '22 04:10

Naveen