commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Campbell <>
Subject OutOfMemoryError when using FileUpload's DiskFileItem
Date Sat, 07 Nov 2009 16:24:09 GMT
I am getting OutOfMemoryErrors when uploading large (>300MB) files to
a servlet utilizing Commons FileUpload 1.2.1. It seems odd, because
the entire point of using DiskFileItem is to prevent the (possibly
large) file from residing in memory. I am using the default size
threshold of 10KB, so that's all that should ever be loaded into the
heap, right? Here is the partial stack trace:

	at Method)
	at org.apache.commons.fileupload.disk.DiskFileItem.get(
	at org.springframework.web.multipart.commons.CommonsMultipartFile.getBytes(

Is there some configuration I'm missing? Any tips/tricks to avoid this

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message