Select the search type
  • Site
  • Web
Search
You are here:  Support/Forums
Support

Bring2mind Forums

PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 08/13/2007 10:39 AM by  Peter Donker
Large File Download Question
 5 Replies
Sort:
You are not authorized to post a reply.
Author Messages
Bryan Farley
New Member
New Member
Posts:2


--
01/16/2007 2:23 PM
    I recently submitted a bug report about an issue I was having where when downloading large files (250MB and 675MB) the memory usage on the ASP.NET worker process was increasing by the same size of the file, and that in some cases this memory never got freed up.  The files upload fine, and I have my web.config set to allow me to download files this large.  Essentially what happens is that when I start downloading the file, I can see the memory usage climb up in the task manager as the file is buffered.  By the time I get the dialog to open or save in the browser, the worker process is >800MB for the large file.  The next issue is that when I click 'Cancel' (looks like this is only in FireFox), the download is cancelled, but the memory used by the worker process never goes back down to normal.   I have the source code and uncommenting the line that flushes the response seems to solve the problem, but I imagine it was commented out for a reason.  Can you detail the implications of uncommenting that line, or provide other suggestions about my issue.

    Thanks in advance
    Bryan
    Peter Donker
    Veteran Member
    Veteran Member
    Posts:4536


    --
    01/18/2007 10:00 AM
    Bryan,
    The flush prompted an error report to be sent out on the line. Files were broken (notably pdfs) as this happened. Since the flush was removed these errors have evaporated. I'll look into this again based on your detailed report (thanks for that). Let me know if you find anything more.
    Cheers,
    Peter
    Bryan Farley
    New Member
    New Member
    Posts:2


    --
    01/29/2007 7:19 PM
    Peter

    I believe I am getting the .pdf error you are mentioning in Firefox (not IE).  The error reads 'File does not start with %PDF-'.  Was this the error seen previously?  Do you know of any other file types that had issues?  If I force a download for pdf's then this problem really doesn't affect me much as the .pdf that is downloaded appears to work perfectly.

    Thanks
    Bryan
    Peter Donker
    Veteran Member
    Veteran Member
    Posts:4536


    --
    01/31/2007 11:28 AM
    Thanks Bryan. The earlier error was caused by the fact that at the end of the bytestream being sent to the client, there was an error message generated by .net.
    Aruba Networks
    New Member
    New Member
    Posts:19


    --
    08/11/2007 1:06 AM

    Hi Bryan,

    This is exactly what I am looking for to upload a large file. Did you do a custom code for doing this or just simply set into the web.config? Please let me know how did you overcome the problem in uploading a large file, because my situation is exactly the same where I need to upload a file between 200 Mb - 700Mb. Thanks in advance.

    Peter Donker
    Veteran Member
    Veteran Member
    Posts:4536


    --
    08/13/2007 10:39 AM
    Hi Ronny,
    Download is not the same as upload! The download should work for very large files. It's the upload that causes the server to choke (or more accurately: to protect itself and cut off).
    Peter
    You are not authorized to post a reply.