How do I configure the max POST request parameter size in GlassFish?

"I can't find a way to configure the allowed maximum size of a HTTP POST request parameter. For example, trying to do a POST request parameter with size about 5mb fails. If sending a parameter this big is unusual, and I'm supposed to use multipart requests, can someone
point to a simply way/library to do it?"

This thread answers the question.