limiting thread sweeper to MAX_HISTORY