Best Practice with Garbage collection when application has Global Cache
<p>I am working in application which has a global cache and where we have data publisher also. The problem is this we frequently face the out of memory issue. Now did some tuning but it is not sufficient. We have large no of young generation and tenured generation object. Most of the time app goes to tenured generation and hence it throws OutOfMemoryError.</p>

<p>As we have 2 CPU host we may apply Throughput Collector to avoid pause time but it majorly collects  young generation and hence we are using Concurrent low pause collector.</p>

<p>What is the best possible way tune VM for this application? </p>

<p>How can I increase Minor GC  which in turn will control our tenured generation.</p>

<p>Thanks in advance.</p>
