Reputation: 1817
My understanding is that with the server GC mode, you get one GC thread per processor for your application. However when looking a dump file, I am looking at different results.
When I open a dump file, its showng 4 procs.
!eehheap -gc command suggesting the same.
When I run !threads -special command, its showing 8 GC threads. Why?
Upvotes: 1
Views: 909
Reputation: 273854
You have 4 cores and 4 Heaps (as shown in the dump).
Per core you have a GC thread (for generations 0 and 1) and a Background GC thread for gen2.
8 threads in all. You can see a depiction of 4 threads on a dual-core on this page, look for "Server GC: Before and after".
Upvotes: 4