RFR (XS): 8211123: GC Metaspace printing after full gc does not reflect recent changes (Was: Re: A Bug Of Metaspace After Full GC)

Thomas Schatzl thomas.schatzl at oracle.com
Thu Sep 27 19:19:08 UTC 2018


Hi JC,

On Thu, 2018-09-27 at 21:05 +0200, Thomas Stüfe wrote:
> Hi JC,
> 
> On Thu, Sep 27, 2018 at 8:29 PM, JC Beyler <jcbeyler at google.com>
> wrote:
> > Hi Thomas and Thomas,
> > 
> > Thanks for the reviews!
> > 
> > @Thomas Schatzl: I looked for using a MXBean but I'm confused about
> > using this. What this fix+test is trying to ascertain is that the
> > moment of the logging of the metaspace data, the new size has been
> > calculated; how do I do that with a MXBean? Would I not always get
> > the current size? So if I did before FullGC, I'd get the previous
> > size, after FullGC, I'd always get the new size, no? I am most
> > likely missing something and I apologize!

No, you are right, the MXBeans will be correct after GC of course, it's
the logs that are wrong.

So forget what I said.

Thomas



More information about the hotspot-gc-dev mailing list