title: GC (Allocation Failure) [PSYoungGen]
body: <p>Recently we switched our code to java8 from java7. We are getting GC allocation failure in every 10 minuts for PSYoungGen. We even tried having switch -XX:NewSize and -XX:NewMaxSize in place to around 5GB(total heap size is 10GB). But even after gc allocation failure is getting printed and PSYoungGen is triggering to the almost the size(5GB). Added some logs :</p>
  
  <pre><code>[GC (Allocation Failure) [PSYoungGen: 3145728K-&gt;114922K(3670016K)] 3145728K-&gt;115026K(5767168K), 0.2511084 secs] [Times: user=0.26 sys=0.14, real=0.25 secs]
  [GC (Allocation Failure) [PSYoungGen: 4443141K-&gt;125893K(4718592K)] 4443261K-&gt;126229K(6815744K), 0.2318927 secs] [Times: user=0.42 sys=0.22, real=0.24 secs]
  </code></pre>
  
  <p>In one of answers: <a href="https://stackoverflow.com/questions/28342736/java-gc-allocation-failure?noredirect=1&amp;lq=1">Java GC (Allocation Failure)</a> related to this I have seen this is normal behavior, just curious to know is there any way to overcome this ? Thanks.</p>