set max heap size to 512m

set max heap size to 512m