This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Kubernetes in Action and have Marko Luksa on-line!
See this thread for details.
Win a copy of Kubernetes in Action this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

t:inputFileUpload, java.lang.OutOfMemoryError!!  RSS feed

 
Ranch Hand
Posts: 250
  • 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:
 
Rancher
Posts: 42972
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!