Tunning java parameters to save some memory