title: MaxMetaspaceSize=3072m and MaxHeap Size=11g and HeapSize=1024m and still out of memory:Metaspace
body: <p>I have set MaxMetaspaceSize to 3072m;  MaxHeap Size=11g and HeapSize=1024m.</p>
  <p>Can anyone suggest what is problem with this settings on server</p>
  <pre><code>-d64 -XX:ThreadStackSize=256m -XX:NewRatio=2 -XX:+UseStringDeduplication -XX:+UseG1GC -XX:MaxMetaspaceSize=3072m
  </code></pre>
  <p>We usually get Metaspace issue and we restart the Wildfly server everytime; but after 6 hours we get metaspace again.</p>
  <p>There are 40 projects deployed which are using these setting. (Each project has around 5 to 10 classes only) and mostly are schedulers (Connect DB and create file to SFTP OR hit Rest api and update some DB).</p>
  <p>Mostly fire once during night and a few fire in like 30 minutes. In one integration, we need to load 2,00,000 data in memory and integration runs fine.</p>
  <p>Is there issue in metaspace settings? Should i increase?
  <a href="https://i.stack.imgur.com/oiFE3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oiFE3.png" alt="enter image description here" /></a></p>