This week's book giveaway is in the Cloud forum.
We're giving away four copies of The Business Blockchain and have William Mougayar on-line!
See this thread for details.
Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

t:inputFileUpload, java.lang.OutOfMemoryError!!

 
peter tong
Ranch Hand
Posts: 248
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic