You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2003/11/26 16:56:33 UTC

DO NOT REPLY [Bug 25023] New: - OutOfMemoryErrors after file uploads

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25023>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25023

OutOfMemoryErrors after file uploads

           Summary: OutOfMemoryErrors after file uploads
           Product: Struts
           Version: 1.1 Final
          Platform: All
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: File Upload
        AssignedTo: struts-dev@jakarta.apache.org
        ReportedBy: jonathan.gray@netdecisions.com


file uploads are a significant part of our web application and within our 
application (running with default heap sizes under jdk 1.4.2) after a lot of 
the error messages below we started getting OutOfMemoryErrors.  I presume the 
error below is coming from people who click 'stop' on their browser before the 
upload has completed which is fine.  I don't know whether it is another part of 
the application that is causing the out of memory errors but I think it is 
worth investigating the file upload code.  Currently, we have increased the min 
and max heap sizes to 256 and 512 Mb respectively so have not seen the problem 
again, yet.  We are using struts 1.1, html:form, html:file and 
enctype="multipart/form-data" to do the file uploads and FormFile in the Java 
ActionForm.


[2003/11/24 12:19:20] Processing of multipart/form-data request failed. Stream 
ended unexpectedly
org.apache.commons.fileupload.FileUploadException: Processing of multipart/form-
data request failed. Stream ended unexpectedly
	at org.apache.commons.fileupload.FileUploadBase.parseRequest
(FileUploadBase.java:429)
	at org.apache.struts.upload.CommonsMultipartRequestHandler.handleRequest
(CommonsMultipartRequestHandler.java:233)
	at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1209)
	at org.apache.struts.action.RequestProcessor.processPopulate
(RequestProcessor.java:821)
	at org.apache.struts.action.RequestProcessor.process
(RequestProcessor.java:254)
	at org.apache.struts.action.ActionServlet.process
(ActionServlet.java:1482)
	at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:165)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:103)
	at com.caucho.server.http.FilterChainServlet.doFilter
(FilterChainServlet.java:96)
	at com.caucho.server.http.Invocation.service(Invocation.java:315)
	at com.caucho.server.http.CacheInvocation.service
(CacheInvocation.java:135)
	at com.caucho.server.http.RunnerRequest.handleRequest
(RunnerRequest.java:346)
	at com.caucho.server.http.RunnerRequest.handleConnection
(RunnerRequest.java:274)
	at com.caucho.server.TcpConnection.run(TcpConnection.java:139)
	at java.lang.Thread.run(Thread.java:534)

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org