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

Reply via email to