File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Quick Question on fileupload in Struts2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Quick Question on fileupload in Struts2" Watch "Quick Question on fileupload in Struts2" New topic
Author

Quick Question on fileupload in Struts2

Kumar Ala
Ranch Hand

Joined: Apr 30, 2009
Posts: 53
Guys,
I have a question about struts2 file upload. I am using struts2 fileupload interceptor for my application. Things are smooth until multiple users try to upload larger files and that would throw the JVM error. That is because while uploading file until it gets the full file everthing is stored in the memory. So obviously at some time it reaches the max. size.

Any solution to solve this by setting something like a threshold such that once that size reached it automatically unload from the memory.
Hope you guys got my question..?

Thanks


kumar
SCEA5 P1
 
GeeCON Prague 2014
 
subject: Quick Question on fileupload in Struts2