Running out of memory when parsing the large text file