XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 0.4, 0.5
    • None
    • None
    • debian lenny amd64 Java(TM) SE Runtime Environment (build 1.6.0_12-b04)

    Description

      The Concurrent Mark Sweep GC is using about 30% of the cpu during inserts. This is not reported as GC time by jconsole, but can be observed by finding the thread with jstack and watching it via top. This is due to the CMSInitiatingOccupancyFraction=1 setting being passed to the JVM. Setting this to 1 is nonsensical, the default is 68.

      I tested with some runs of stress.py with 200k inserts, and removing CMSInitiatingOccupancyFraction causes the 30% cpu usage to disappear. ParNew GC time was 28-29s. Adding SurvivorRatio=128 and MaxTenuringThreshold=0 drops the GC time to 18-20s.

      Attachments

        1. better_gc_jvm_opts.patch
          0.5 kB
          Brandon Williams

        Activity

          People

            brandon.williams Brandon Williams
            brandon.williams Brandon Williams
            Brandon Williams
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: