fix java memory