Try increasing memory for elasticsearch.