Nettoyer de mémoire Java

For Minecraft:

if(timeHelper.hasReached(300000)) {
            System.gc();
            timeHelper.reset();
        }
Shept