G1 is bad for me

Andrei Pozolotin andrei.pozolotin at gmail.com
Fri Feb 19 07:21:26 PST 2010


    Chi Ho Kwok, hi

    I can confirm the following:

    1) I followed Ramki advice below and deployed JDK 7 b83 with HS17;

    2) it does stop crashes in G1 which were happening in JDK 6 u18 HS16;

    3) but G1 cpu usage is like 10 times more then CMS under same load,
    and cpu load pattern is excessively spikey in G1, while much more
    smooth in CMS;

    4) G1 pauses are 200 ms, while CMS pauses are 50 ms under same load;

    5) I am using the following ergonomic options:
    -XX:MaxGCPauseMillis=70
    -XX:GCPauseIntervalMillis=700

    6) per gc logs, most of G1 200 ms pause is spent in "Remembered Set
    Rescan"
    this is presumably because this "helpful ergonomics" can not separate
    static heap set and keeps scanning it all the time;

    any advice how to kill this ergonomics and provide manual overrides
    is much appreciated!

    thank you

    Andrei


-------- Original Message  --------
Subject: Re: G1 is bad for me
From: Chi Ho Kwok <chkwok at digibites.nl>
To: hotspot-gc-use <hotspot-gc-use at openjdk.java.net>
Date: Fri 19 Feb 2010 08:59:53 AM CST
> Hi all,
>
> A large part of our CPU load is caused by GC, so I'm always interested
> in new techniques, but the last time I tried G1 (6u14?), the jvm
> rapidly crashed after startup under load. Is the recommendation to
> switch to/wait for JDK7 releases for G1, or is G1 on 6u18 (or later?)
> any good for production usage? I'd assume there will be more updates
> for JDK6 as JDK7 got extended to up to 10 milestones.
>
> CMS with a 32G heap which changes rapidly (~10%/min replaced) is
> manageable, but we're "losing" 20% capacity because the threshold has
> to be so low, anything higher than 80% causes new gen promotions to
> fail during CMS and the app to stop for half a minute. Processing
> capacity is also reduced by half during a CMS run because the amount
> of threads has to be high (=6 at the moment) to make it hurry up, or
> it'll mean either setting the threshold even lower or risk promotion
> failures :(
>
> Chi Ho Kwok
>
> On Thu, Feb 18, 2010 at 6:37 PM, Y. Srinivas Ramakrishna
> <Y.S.Ramakrishna at sun.com <mailto:Y.S.Ramakrishna at sun.com>> wrote:
>
>     Hi Andrei -- please use the latest hs17 JVM which you can get from
>     JDK 7. There have been
>     many improvements (and bug fixes) since the 6u18/hs16 that you are
>     using below.
>     Most importantly, please add -XX:-ReduceInitialCardMarks to work
>     around a regression
>     introduced in 6u18/hs16, as described in the 6u18 release notes.
>     As re optimal settings (these may be quite different from shapes
>     that helped with CMS
>     for example), i'll let others w/more (tuning and other) experience
>     w/G1 comment.
>
>     -- ramki
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> hotspot-gc-use mailing list
> hotspot-gc-use at openjdk.java.net
> http://mail.openjdk.java.net/mailman/listinfo/hotspot-gc-use
>   

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/hotspot-gc-use/attachments/20100219/30f3828e/attachment.html 


More information about the hotspot-gc-use mailing list