The default -xmx jvm option for gwt compiler shouldn't be 4 gigs. Override it in your ~/.m2/settings.xml, if you want it to be a higher value.