Application Description: 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.
Problem Description: 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.
Question Why doesn't the GC work automatically as it should do in Java ? Thanks for your inputs.