What is the ideal maximum of the length of a comment or reply?

Several sites and forum or general site engines use or at least provide the possibility of limitation in the length of posted comments, posts and/or replies. Stack Exchange engine, for example, has a quite strict limit in case of comments.

What can help determining the ideal length? Too low limit might cause mild frustration in the user.