Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

t:inputFileUpload, java.lang.OutOfMemoryError!!

 
peter tong
Ranch Hand
Posts: 245
  • 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: 42968
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