set max heap size to 512m