title: Java garbage collector - When does it collect?
body: <p>What is it that determines when the garbage collector actually collects? Does it happen after a certain time or after a certain amount of memory have been used up? Or are there other factors?</p>