You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by ja...@free.fr on 2007/01/30 11:02:16 UTC

File Upload : High memory allocation @once...

Hi all,

We are using commons.fileupload for a long time now and it works great.
But recently we have been facing a problem of huge memory allocation.

More precisely, the application runs on WAS 5.
We allow uploads and downloads of files. The maximal size allowed is 2Megs.

It appears that sometimes the JVM tries to allocate 60 Megs at once.
I was wondering.. While uploading a file, the JVM makes an allocation of at
least the size of the file.. That means, if one tries to upload a huge file, it
would lead to our current problem.

My questions :
-> Do you know if there is a way to configure the maximal memory allocation of
an upload ?
-> Is there a possibility to check the file size before the upload / without an
applet ?

Really Thanks for your inputs,

Regards,
Guillaume.


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org