title: java 8 find out size of metaspace at runtime
body: <p>Java 8 uses metaspace that is capable of expanding dynamically. GC will run on metaspace when its getting full. Does that mean GC will never run on metaspace?</p>
  
  <p>My Java 8 application is using a LOT of memory. I would like to know what is the size of my metaspace at the run time. How do I do that?</p>
  
  <p>I am thinking of setting <code>MaxMetaspaceSize</code>. What should I set it to? Any recommendations?</p>