title: How to diagnose a Java 8 metaspace leak?
body: <p>I have a J2EE application with some interesting behavior ... the heap seems to behave well, growing and shrinking with garbage collections as expected over time. There is no appreciable overall long term heap expansion. However, the metaspace just keeps steadily growing at about 20 Mb per hour until we hit MaxMetaspace and encounter an OOME. I have tried both the parallel and G1 garbage collectors (jdk1.8.0_40).</p>
  
  <p>The application is not getting re-deployed during the execution, so it doesn't seem like it would be the typical classloader leak.  Does anyone have suggestions as to how to track down the source of this leak?  </p>