No, you should probably leave the Java virtual machine to its own garbage collection devices rather than force a full garbage collection cycle. Unless you are writing something that is allocating extremely large amounts of memory, there is no need to force a garbage collection.