Performance Analysis and Optimization of Full Garbage Collection in Memory-hungry Environments