DGC and UseParallelOldGC

Jon Masamitsu Jon.Masamitsu at Sun.COM
Wed Oct 14 13:40:29 UTC 2009



On 10/13/09 18:10, Rainer Jung wrote:
> On 14.10.2009 01:35, Jon Masamitsu wrote:
>> Rainer Jung wrote On 10/13/09 15:46,:
>>
>>> Hi all,
>>>
>>> if I activate the parallel stop the world collector using
>>> -XX:+UseParallelOldGC and DGC kicks in: will it run with multiple
>>> threads in parallel, or will it only run single-threaded?
>> I'm assuming you mean that you are using the throughput collector
>> (UseParallelGC/UseParallelOldGC) in which case turning on
>> UseParallelOldGC will use multiple threads for an explicit GC.
>> (System.gc()).
> 
> Yes that was the question, but also especially for the distributed GC
> triggered by RMI. When using CMS you have to explicitely set flags to
> let DGC also use the CMS. So since UseParallelOldGC is not the default I
> wasn't sure, whether you need to set something in analogy to let the
> distributed GC also use it.
> 

Yes for the distributed GC case multiple GC threads will be used.

A GC triggered by RMI (for distributed GC purposes) is the same as
a explicit GC (no special treatment).  Similarly, when you use
CMS and ExplicitGCInvokesConcurrent and/or 
ExplicitGCInvokesConcurrentAndUnloadsClasses all the
explicit GC's are affected.
_______________________________________________
hotspot-gc-use mailing list
hotspot-gc-use at openjdk.java.net
http://mail.openjdk.java.net/mailman/listinfo/hotspot-gc-use



More information about the hotspot-gc-dev mailing list