<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Shengzhe,<br>
      <br>
      Can you get native memory statistics?&nbsp; It should at least give
      some idea which part of native memory is growing.&nbsp; You need <br>
      <pre>-XX:+UnlockDiagnosticVMOptions

to print native memory data.
</pre>
      <pre class="moz-signature" cols="72">Thanks,
Jenny</pre>
      On 2/10/2014 11:39 AM, yao wrote:<br>
    </div>
    <blockquote
cite="mid:CA+FETEKQy5_zE16-2qRN0k6LJ73_K3CLqJ4BuCbqZLM0_OXYZA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>Hi All,<br>
            <br>
          </div>
          We've enabled G1 GC on our cluster for about 1 month and
          recently we observed the heap size keeps growing (via RES
          column in top), though very slowly. My question is, is there a
          way to bound heap size for G1 GC ?<br>
          <br>
          We set heap size to 82G<br>
          <br>
          <i>-Xms83868m -Xmx83868m -XX:+UnlockExperimentalVMOptions
            -XX:+UseG1GC <br>
          </i><br>
        </div>
        <div>We found RES column is about 100G, (a few days ago it was
          about 93G)<br>
          <br>
        </div>
        <b>$ top</b><br>
        <div>PID USER&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PR&nbsp; NI&nbsp; VIRT&nbsp; RES&nbsp; SHR S %CPU %MEM&nbsp;&nbsp;&nbsp; TIME+&nbsp;
          COMMAND<br>
          5757 hbase&nbsp;&nbsp;&nbsp;&nbsp; 20&nbsp;&nbsp; 0&nbsp; 104g <b>100g</b> 5240 S 271.3 79.6
          177771:41 java<br>
          <br>
          From previous discussion, Thomas Schatzl pointed out this
          might be due to large RSet. From below lines in gc log, we
          found RSet size is about 10.5G. So we get Xmx + RSet = 82G +
          10.5G = 92.5G, here you can see there are still unexplained
          7.5G data occupied our off-heap.<br>
          <br>
          RSet log:<br>
          <br>
          <i>&nbsp;Concurrent RS processed -1601420092 cards<br>
            &nbsp; Of 651507426 completed buffers:<br>
            &nbsp;&nbsp;&nbsp;&nbsp; 634241940 ( 97.3%) by conc RS threads.<br>
            &nbsp;&nbsp;&nbsp;&nbsp; 17265486 (&nbsp; 2.7%) by mutator threads.<br>
            &nbsp; Conc RS threads times(s)<br>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0.00&nbsp;&nbsp;&nbsp;&nbsp; 0.00&nbsp;&nbsp;&nbsp;&nbsp; 0.00&nbsp;&nbsp;&nbsp;&nbsp; 0.00&nbsp;&nbsp;&nbsp;&nbsp; 0.00&nbsp;&nbsp;&nbsp;&nbsp;
            0.00&nbsp;&nbsp;&nbsp;&nbsp; 0.00&nbsp;&nbsp;&nbsp;&nbsp; 0.00&nbsp;&nbsp;&nbsp;&nbsp; 0.00&nbsp;&nbsp;&nbsp;&nbsp; 0.00&nbsp;&nbsp;&nbsp;&nbsp; 0.00&nbsp;&nbsp;&nbsp;&nbsp;
            0.00&nbsp;&nbsp;&nbsp;&nbsp; 0.00&nbsp;&nbsp;&nbsp;&nbsp; 0.00&nbsp;&nbsp;&nbsp;&nbsp; 0.00&nbsp;&nbsp;&nbsp;&nbsp; 0.00&nbsp;&nbsp;&nbsp;&nbsp; 0.00&nbsp;&nbsp;&nbsp;&nbsp;
            0.00&nbsp;&nbsp;&nbsp; \<br>
            &nbsp;0.00&nbsp;&nbsp;&nbsp;&nbsp; 0.00&nbsp;&nbsp;&nbsp;&nbsp; 0.00&nbsp;&nbsp;&nbsp;&nbsp; 0.00&nbsp;&nbsp;&nbsp;&nbsp; 0.00&nbsp;&nbsp;&nbsp;&nbsp; 0.00<br>
            &nbsp; Total heap region rem set sizes = 10980692K.&nbsp; Max =
            16182K.<br>
            &nbsp; Static structures = 563K, free_lists = 78882K.<br>
            &nbsp;&nbsp;&nbsp; 197990656 occupied cards represented.<br>
            &nbsp;&nbsp;&nbsp; Max size region =
            165:(O)[0x00007f0ce0000000,0x00007f0ce2000000,0x00007f0ce2000000],
            size = 16183K, occupied = 3474K.<br>
            &nbsp;&nbsp;&nbsp; Did 0 coarsenings.</i><br>
          <br>
        </div>
        <div>Thanks<br>
        </div>
        <div>-Shengzhe<br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
hotspot-gc-use mailing list
<a class="moz-txt-link-abbreviated" href="mailto:hotspot-gc-use@openjdk.java.net">hotspot-gc-use@openjdk.java.net</a>
<a class="moz-txt-link-freetext" href="http://mail.openjdk.java.net/mailman/listinfo/hotspot-gc-use">http://mail.openjdk.java.net/mailman/listinfo/hotspot-gc-use</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>