auto-calculate ES_HEAP_SIZE if not provided