Uploading files up to 150MB onto server

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Rosie Chua

    Uploading files up to 150MB onto server

    Dear all,

    I am running an online file management server that allows web clients to
    upload files from a webform to the web server.

    Using the code
    "filename.Poste dFile.SaveAs(fu llPath);"
    I have no problem uploading file with size up to 25MB, but the page starts
    to create problem with any size above 25 MB - the error message displayed is
    "Server Unavailable" or occasionally it just dies off.

    I am running the web server using ASP.net framework 1.0 developed using C#

    In the Application Log of the machine's event viewer, I get these message:

    Event Type: Error
    Event Source: ASP.NET 1.0.3705.288
    Event Category: None
    Event ID: 1003
    Date: 6/26/2003
    Time: 10:45:47 AM
    User: N/A
    Computer: ROSIE
    Description:
    aspnet_wp.exe (PID: 2108) was recycled because it was suspected to be in a
    deadlocked state. It did not send any responses for pending requests in the
    last 180 seconds.

    Event Type: Error
    Event Source: ASP.NET 1.0.3705.288
    Event Category: None
    Event ID: 1001
    Date: 6/26/2003
    Time: 9:54:35 AM
    User: N/A
    Computer: ROSIE
    Description:
    aspnet_wp.exe (PID: 1532) was recycled because memory consumption exceeded
    the 306 MB (60 percent of available RAM).

    I'd set the following value on Web.Config, but it still doesn't work:
    <httpRuntime maxRequestLengt h="153600" />

    Anyone know how to go around this problem? The uploaded file size could be
    up to 150MB in size.

    Cheers
    Rosie Chua


  • Ken Cox [Microsoft MVP]

    #2
    Re: Uploading files up to 150MB onto server

    I suspect that the upload is gobbling up the server's memory because the
    content isn't being flushed to disk as it streams. You might want to
    investigate a commercial upload component for this kind of task:

    Build web apps and services that run on Windows, Linux, and macOS using C#, HTML, CSS, and JavaScript. Get started for free on Windows, Linux, or macOS.


    Ken

    "Rosie Chua" <rchua@learning fast.com.au> wrote in message
    news:bddhc4$pi0 $1@towncrier.it s.monash.edu.au ...
    Dear all,

    I am running an online file management server that allows web clients to
    upload files from a webform to the web server.

    Using the code
    "filename.Poste dFile.SaveAs(fu llPath);"
    I have no problem uploading file with size up to 25MB, but the page starts
    to create problem with any size above 25 MB - the error message displayed is
    "Server Unavailable" or occasionally it just dies off.

    I am running the web server using ASP.net framework 1.0 developed using C#

    In the Application Log of the machine's event viewer, I get these message:

    Event Type: Error
    Event Source: ASP.NET 1.0.3705.288
    Event Category: None
    Event ID: 1003
    Date: 6/26/2003
    Time: 10:45:47 AM
    User: N/A
    Computer: ROSIE
    Description:
    aspnet_wp.exe (PID: 2108) was recycled because it was suspected to be in a
    deadlocked state. It did not send any responses for pending requests in the
    last 180 seconds.

    Event Type: Error
    Event Source: ASP.NET 1.0.3705.288
    Event Category: None
    Event ID: 1001
    Date: 6/26/2003
    Time: 9:54:35 AM
    User: N/A
    Computer: ROSIE
    Description:
    aspnet_wp.exe (PID: 1532) was recycled because memory consumption exceeded
    the 306 MB (60 percent of available RAM).

    I'd set the following value on Web.Config, but it still doesn't work:
    <httpRuntime maxRequestLengt h="153600" />

    Anyone know how to go around this problem? The uploaded file size could be
    up to 150MB in size.

    Cheers
    Rosie Chua



    Comment

    • Russ Bishop

      #3
      Re: Uploading files up to 150MB onto server

      You need a script or component that accepts the uploaded file and streams it
      to disk, rather than holding it in memory first. It would be fairly easy to
      write such a thing, using basic TCP sockets to accept the HTTP request, then
      the IO stuff to write it to disk.

      -- russ

      "Rosie Chua" <rchua@learning fast.com.au> wrote in message
      news:bddhc4$pi0 $1@towncrier.it s.monash.edu.au ...[color=blue]
      > Dear all,
      >
      > I am running an online file management server that allows web clients to
      > upload files from a webform to the web server.
      >
      > Using the code
      > "filename.Poste dFile.SaveAs(fu llPath);"
      > I have no problem uploading file with size up to 25MB, but the page starts
      > to create problem with any size above 25 MB - the error message displayed[/color]
      is[color=blue]
      > "Server Unavailable" or occasionally it just dies off.
      >
      > I am running the web server using ASP.net framework 1.0 developed using C#
      >
      > In the Application Log of the machine's event viewer, I get these message:
      >
      > Event Type: Error
      > Event Source: ASP.NET 1.0.3705.288
      > Event Category: None
      > Event ID: 1003
      > Date: 6/26/2003
      > Time: 10:45:47 AM
      > User: N/A
      > Computer: ROSIE
      > Description:
      > aspnet_wp.exe (PID: 2108) was recycled because it was suspected to be in[/color]
      a[color=blue]
      > deadlocked state. It did not send any responses for pending requests in[/color]
      the[color=blue]
      > last 180 seconds.
      >
      > Event Type: Error
      > Event Source: ASP.NET 1.0.3705.288
      > Event Category: None
      > Event ID: 1001
      > Date: 6/26/2003
      > Time: 9:54:35 AM
      > User: N/A
      > Computer: ROSIE
      > Description:
      > aspnet_wp.exe (PID: 1532) was recycled because memory consumption[/color]
      exceeded[color=blue]
      > the 306 MB (60 percent of available RAM).
      >
      > I'd set the following value on Web.Config, but it still doesn't work:
      > <httpRuntime maxRequestLengt h="153600" />
      >
      > Anyone know how to go around this problem? The uploaded file size could be
      > up to 150MB in size.
      >
      > Cheers
      > Rosie Chua
      >
      >[/color]


      Comment

      • Russ Bishop

        #4
        Re: Uploading files up to 150MB onto server

        Sorry, I don't have the time to write the component for free. Besides, you'd
        learn a lot more by doing it yourself. I suggest doing some tutorials for
        socket programming on the web, then some for writing files. Combine the two.

        -- russ

        "Rosie Chua" <rchua@learning fast.com.au> wrote in message
        news:bddqm4$u6k $1@towncrier.it s.monash.edu.au ...[color=blue]
        > Russ,
        >
        > Thanks heaps for your reply. Can you please provide more details, or the
        > sample code? Thanks again.
        >
        > Rosie
        >
        > "Russ Bishop" <nowhere> wrote in message
        > news:%23wAGJR5O DHA.1364@TK2MSF TNGP10.phx.gbl. ..[color=green]
        > > You need a script or component that accepts the uploaded file and[/color][/color]
        streams[color=blue]
        > it[color=green]
        > > to disk, rather than holding it in memory first. It would be fairly easy[/color]
        > to[color=green]
        > > write such a thing, using basic TCP sockets to accept the HTTP request,[/color]
        > then[color=green]
        > > the IO stuff to write it to disk.
        > >
        > > -- russ
        > >
        > > "Rosie Chua" <rchua@learning fast.com.au> wrote in message
        > > news:bddhc4$pi0 $1@towncrier.it s.monash.edu.au ...[color=darkred]
        > > > Dear all,
        > > >
        > > > I am running an online file management server that allows web clients[/color][/color][/color]
        to[color=blue][color=green][color=darkred]
        > > > upload files from a webform to the web server.
        > > >
        > > > Using the code
        > > > "filename.Poste dFile.SaveAs(fu llPath);"
        > > > I have no problem uploading file with size up to 25MB, but the page[/color][/color]
        > starts[color=green][color=darkred]
        > > > to create problem with any size above 25 MB - the error message[/color][/color]
        > displayed[color=green]
        > > is[color=darkred]
        > > > "Server Unavailable" or occasionally it just dies off.
        > > >
        > > > I am running the web server using ASP.net framework 1.0 developed[/color][/color][/color]
        using[color=blue]
        > C#[color=green][color=darkred]
        > > >
        > > > In the Application Log of the machine's event viewer, I get these[/color][/color]
        > message:[color=green][color=darkred]
        > > >
        > > > Event Type: Error
        > > > Event Source: ASP.NET 1.0.3705.288
        > > > Event Category: None
        > > > Event ID: 1003
        > > > Date: 6/26/2003
        > > > Time: 10:45:47 AM
        > > > User: N/A
        > > > Computer: ROSIE
        > > > Description:
        > > > aspnet_wp.exe (PID: 2108) was recycled because it was suspected to be[/color][/color]
        > in[color=green]
        > > a[color=darkred]
        > > > deadlocked state. It did not send any responses for pending requests[/color][/color][/color]
        in[color=blue][color=green]
        > > the[color=darkred]
        > > > last 180 seconds.
        > > >
        > > > Event Type: Error
        > > > Event Source: ASP.NET 1.0.3705.288
        > > > Event Category: None
        > > > Event ID: 1001
        > > > Date: 6/26/2003
        > > > Time: 9:54:35 AM
        > > > User: N/A
        > > > Computer: ROSIE
        > > > Description:
        > > > aspnet_wp.exe (PID: 1532) was recycled because memory consumption[/color]
        > > exceeded[color=darkred]
        > > > the 306 MB (60 percent of available RAM).
        > > >
        > > > I'd set the following value on Web.Config, but it still doesn't work:
        > > > <httpRuntime maxRequestLengt h="153600" />
        > > >
        > > > Anyone know how to go around this problem? The uploaded file size[/color][/color][/color]
        could[color=blue]
        > be[color=green][color=darkred]
        > > > up to 150MB in size.
        > > >
        > > > Cheers
        > > > Rosie Chua
        > > >
        > > >[/color]
        > >
        > >[/color]
        >
        >[/color]


        Comment

        Working...