title: What are good Java coding practices to help Java GC?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2484079/how-can-i-avoid-garbage-collection-delays-in-java-games-best-practices">How can I avoid garbage collection delays in Java games? (Best Practices)</a>  </p>
  </blockquote>
  
  
  
  <p>Java's GC pause is a killer. Often the time, the application doesn't have the memory leak. At some point, it may pause for ~1 second for every 1G memory allocation. </p>
  
  <p>What are good Java coding practices to help Java GC? </p>
  
  <p>One example, since null object becomes eligible for garbage collection, so it is a good idea to explicitly set an object to null e.g. object = null. </p>