<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi Kirk,<br>
    <br>
    Disclaimer: I'm in support and all I can share is my experience:<br>
    <br>
    You always need a full GC if heap resizing is needed.<br>
    CMS  AFAIHS cannot initiate an increase of perm.<br>
    Sooner or later it will bail out.<br>
    I always start with the heap sizing first. Making sure that<br>
    all areas have sufficient capacity and a fixed size in order<br>
    to avoid constant CMS runs or even bail outs.<br>
    <br>
    Thanks and Regards<br>
    <br>
    Thomas <br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 10/02/13 04:38, Kirk Pepperdine
      wrote:<br>
    </div>
    <blockquote
      cite="mid:6E7D4639-0C06-49CF-9796-D47806833B24@kodewerk.com"
      type="cite">
      <pre wrap="">Hi,

I've just witnessed in 1.7.0_17-b02 (Solaris AMD) CMS cycles being initiated every 7.390 seconds. The system is idle and there are no foreground (ParNew) collections running. Perm occupancy is quite close to it's configured size so it's quite likely that the cause of the CMS cycle is this. However, Class unloading is not enabled and thus the CMS cycle doesn't "fix" the trigger by cleaning out perm or being able to enlarge it (configured size < max size) and there isn't any pressure for a Full collection (CMF??). Triggering a collection (System.gc()) of course "fixes" the problem (facilitates a perm space expansion).

Ok, so there are work arounds for this but it really confused the person who contacted me with the problem and he's no slouch when it comes to GC. I've advised him to turn on perm space sweeping with class unloading. That said, it seems that CMS should know that it's not going to be able to fix the problem that triggered to to run and it should degrade into a CMF, reason perm space needs resizing. My questions are, have I missed something? Should this be filed as a bug? Or, is this as intended?

On a side note I found the 7.390 second period to be an interesting distraction.

Regards,
Kirk</pre>
    </blockquote>
    <br>
    <div class="moz-signature">-- <br>
      <a href="http://www.oracle.com" target="_blank"><img
          style="border: 0px solid ; width: 114px; height: 26px;"
          src="cid:part1.03020101.00000401@oracle.com" alt="Oracle"></a><br>
      <font color="#666666" face="Verdana, Arial, Helvetica, sans-serif"
        size="2">THOMAS VIESSMANN | Senior Principal Technical Support
        Engineer - Java<br>
        Phone: <a href="tel:+49814302496">+498914302496</a> | Mobile: <a
          href="tel:+491743005467">+491743005467</a> <br>
        <font color="#ff0000">Oracle</font> Customer Technical Support -
        Java<br>
        <br>
        ORACLE Deutschland B.V. & Co. KG | Riesstr.25 | D-80992
        Muenchen </font><br>
      <br>
      <font color="#666666" face="Verdana, Arial, Helvetica, sans-serif"
        size="1">ORACLE Deutschland B.V. & Co. KG<br>
        Hauptverwaltung: Riesstr. 25, D-80992 Muenchen<br>
        Registergericht: Amtsgericht Muenchen, HRA 95603<br>
        Geschäftsführere: Juergen Kunz<br>
        <br>
        Komplementärin: ORACLE Deutschland Verwaltung B.V.<br>
        Hertogswetering 163/167, 3543 AS Utrecht, Niederlande<br>
        Handelsregister der Handelskammer Midden-Niederlande, Nr.
        30143697<br>
        Geschäftsführer: Alexander van der Ven, Astrid Kepper, Val Maher<br>
      </font>
      <br>
      <hr>
      <hr>
      <a href="http://www.oracle.com/commitment" target="_blank"><img
          style="border: 0px solid ; width: 44px; height: 28px;"
          src="cid:part5.02030001.03080903@oracle.com" alt="Green
          Oracle" align="middle"></a>
      <font color="#4b7d42" face="Verdana, Arial, Helvetica, sans-serif"
        size="1">Oracle is committed to developing practices and
        products that help protect the environment</font>
      <!-- This signature was generated by the MyDesktop Oracle Business Signature utility version 3.8.6 -->
    </div>
  </body>
</html>