Rethreading on the [EMAIL PROTECTED] mailing list... :)

Hopefully someone will comment there,

Rob


Blume Samuel (KAID 41) wrote:


Extreme high memory use when using multipart HTML-forms.
Problem is obvious with following constellation:
- HTML-form with a lot of normal text input fields (like a 20x20 matrix = 400 fields) .
- Use of multipart/form-data in the HTML-form (because you may intend to upload the data using a fileupload-filed (optional))
- Setting commons-fileupload's setSizeThreshold(1000000) (1M or higher)
Reaction:
commons-fileupload will now reserve 1M for *each* field in memory.
Thus reserving at least 400M memory!! 1M for each simple text filed.
Correction:
Do not reserve memory in advance! Allocate on the fly and use the threshold only as limit.


- - - - - - - - - - - - - - - - - - - -
Regards
  Sam Blum

--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to