From the questions posted here, and my old one, I created the impression that you cannot explicitly run the Java Garbage Collector whenever you want.
If you call it, you simply instruct the system to call it whenever possible, or thinks it is appropriate.
But in an eclipse, if you click the Run Scavenger button, you will immediately reduce memory usage. How is this possible? Is eclipse another garbage collector, does it have access to some secret API that we don’t have, or is it my concept of how the GC does not work correctly?
source
share