decrease max heap to 50% of available memory