Support setting elasticsearch heap size.