Uploaded image for project: 'Struts 1'
  1. Struts 1
  2. STR-1857

OutOfMemoryErrors after file uploads

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 1.1.0
    • 1.2 Family
    • Core
    • None
    • Operating System: other
      Platform: All
    • 25023

    Description

      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)

      Attachments

        Activity

          People

            Unassigned Unassigned
            jonathan.gray@netdecisions.com Jonathan Gray
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: