<p>Hi Jon,</p>
<p>Do the Metaspace size args allow use of size specifiers (e.g. "g", "m", etc) like Xmx/Xms? I don't have code in front of me but it's a bit unclear from the option descriptions since they mention that the value is in bytes.</p>

<p>Thanks</p>
<p>Sent from my phone</p>
<div class="gmail_quote">On Sep 19, 2012 6:31 PM, "Jon Masamitsu" <<a href="mailto:jon.masamitsu@oracle.com" target="_blank">jon.masamitsu@oracle.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<br>
<br>
On 9/18/2012 12:04 PM, Srinivas Ramakrishna wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
....<br>
Great; thanks a lot for that information. I am assuming that in general<br>
full gc's as a result of the Java heap<br>
filling up will, in most cases, take care of reclaiming enough space in the<br>
metadata spaces, so that no explicit<br>
collection is needed for the total size of the metadata spaces to stay<br>
within the HWM computed. By the way, I assume that<br>
</blockquote>
<br>
That's my experience.    GC's happen much more often because the heap gets  full<br>
and the GC's (full) unload classes.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
there is some way that we can set the starting and maximum metaspace size<br>
to the same value, analogous<br>
to setting PermSize to MaxPermSize? (Essentially saying that the initial<br>
</blockquote>
  product_pd(uintx, MetaspaceSize,                                          \<br>
          "Initial size of Metaspaces (in bytes)")                          \<br>
                                                                            \<br>
  product(uintx, MaxMetaspaceSize, max_uintx,                               \<br>
          "Maximum size of Metaspaces (in bytes)")                          \<br>
<br>
Those might even be at the same lines as PermSize and MaxPermSize used to be  :-)<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
size of the meta space is its maximum size<br>
and that Max/Min free ratio must be ignored.) Anyway, I'll look at the code<br>
and play with the JVM to learn more, but it would be<br>
great if you folks could also put out a brief whitepaper giving an overview<br>
of the implementation and<br>
</blockquote>
Sounds like you've blocked out of your memory what life is like here.  :-)  Whitepaper?  More likely<br>
sparse release notes.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
describing the transition to the new perm gen world and how one might size<br>
these thresholds so as to empirically<br>
"right-size" the heap based on the GC log data etc.<br>
</blockquote>
<br>
That's actually something we don't know yet.  Performance seems to be neutral and I'll take that<br>
given the number of lines we've touched.  And we do have more performance measurements<br>
to do.<br>
<br>
Jon<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
thanks a lot again! And sorry for hijacking the review thread for this<br>
side-conversation.<br>
-- ramki<br>
<br>
</blockquote>
</blockquote></div>