change queue len to 1000 , we limit the program's memory consumption under 10MB