aspose file tools
The moose likes JSF and the fly likes t:inputFileUpload, java.lang.OutOfMemoryError!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Groovy Fundamentals video training course this week in the Groovy forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "t:inputFileUpload, java.lang.OutOfMemoryError!!" Watch "t:inputFileUpload, java.lang.OutOfMemoryError!!" New topic
Author

t:inputFileUpload, java.lang.OutOfMemoryError!!

peter tong
Ranch Hand

Joined: Mar 15, 2008
Posts: 245
I have set the uploadMaxFileSize of extensionsFilter to 100m in web.xml as follow:


but when I upload a 2M file, java.lang.OutOfMemoryError occur!! why will this happen?
the full stacktrace is as follow:
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42956
    
  73
How much memory does the JVM have available? What you have set is just the acceptable limit for files; it doesn't mean the JVM can deal with files of that size.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: t:inputFileUpload, java.lang.OutOfMemoryError!!