The English Dialect Dictionary suggests Old Norse meiss ("wooden box, as would be used for counting fish") as a source; The Century Dictionary suggests that the term comes via Old French from a Latin word *mesa. One can also compare German Mass ("measure") and indeed measure itself.