Check for OutOfMemory errors on elasticsearch