Is it some memory leak in MultiPartRequestWraper?

It's not a leak; it's just how it's implemented. For every FormFile in an ActionForm, Struts (or actually, (commons-fileupload) allocates a byte[] buffer. The size of this buffer is controlled with the "memFileSize" property of the controller. If you have a very large buffer and/or a large number of files, you can run out of memory.


The File-Upload mechanism in Struts is pluggable, so it's certainly possible in theory to find a different strategy for handling uploads, but the easiest solution may simply be to set memFileSize low enough that you won't run out of memory!

Joe
--
Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "Imagine if every Thursday your shoes exploded if you tied them the usual way. This happens to us all the time with computers, and nobody thinks of complaining."
-- Jef Raskin


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



Reply via email to