title: Java gc is not clearing memory automatically
body: <p><strong>Application Description:</strong> 
  I have an application in JAVA which is used to generate charts. The user can set up the charts with the help of a GUI according to his needs. </p>
  
  <p><strong>Problem Description:</strong> 
  When a chart is created certain amount of memory is used and when a new chart is created the memory used by the previous chart is not cleared by the GC automatically however, if I insert a System.gc() statement the memory is cleared. I want the memory to clear all the dead objects each time a new chart is generated.</p>
  
  <p>Question Why doesn't the GC work automatically as it should do in Java ?
  Thanks for your inputs.</p>