Trying yo fix java heap space issue