473,406 Members | 2,378 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Upload file with big size (over 130 MBytes) in ASP.NET. Please help!

Hi all,

I developed an web page in ASP.NET to upload file into the server. In the
Web.config file, I declared
<httpRuntime executionTimeout="1200" maxRequestLength="400000" />

The MAX length is 129M or more for each file upload. I have 2 files
upload at the same time. Therefore, I set the timeout is 20min and the size
of file upload is 390MB (400,000 KBytes).

I've tried the file upload in 3 servers. One server accepted 2 file
(129MBytes for each) upload at the same time. The time to process was 3-4
minutes. In the other two servers, the upload didn't perform well. The
page kept running for over 30 minutes and nothing happened. I closed the
browser beacuse I was afraid it could bring the server down.

I don't know the way I was doing is right or wrong ? Please give me your
advises to upload the files with the big size like this.

Thank you

Mar 2 '07 #1
4 11079
On Mar 2, 5:15 pm, "bienwell" <bienw...@hotmail.comwrote:
Hi all,

I developed an web page in ASP.NET to upload file into the server. In the
Web.config file, I declared
<httpRuntime executionTimeout="1200" maxRequestLength="400000" />

The MAX length is 129M or more for each file upload. I have 2 files
upload at the same time. Therefore, I set the timeout is 20min and the size
of file upload is 390MB (400,000 KBytes).
First of all, 1 MB = 1,0242^2

Plus you have to have some more because of the post header

I've tried the file upload in 3 servers. One server accepted 2 file
(129MBytes for each) upload at the same time. The time to process was 3-4
minutes. In the other two servers, the upload didn't perform well. The
page kept running for over 30 minutes and nothing happened. I closed the
browser beacuse I was afraid it could bring the server down.
because of ASP.NET health monitoring, you cannot upload very large
files in ASP.NET. The ASP.NET worker process has a virtual address
space of 2 gigabytes (GB). However, the ASP.NET worker process only
uses a little more than 1 GB because of health monitoring and memory
fragmentation.

During the upload process, ASP.NET loads the whole file in memory
before the user can save the file to the disk. Therefore, the process
may recycle because of the memoryLimit attribute of the processModel
tag in the Machine.config file. The memoryLimit attribute specifies
the percentage of physical memory that the ASP.NET worker process can
exhaust before the process is automatically recycled. Recycling
prevents memory leaks from causing ASP.NET to crash or to stop
responding.

Additionally, other factors play a role in the maximum file size that
can be uploaded. These factors include available memory, available
hard disk space, processor speed, and current network traffic. With
regular traffic of files being uploaded,

Microsoft recommends that you use a maximum file size in the range of
10 to 20 megabytes (MB). If you rarely upload files, the maximum file
size may be 100 MB.

http://support.microsoft.com/kb/295626

Mar 2 '07 #2
If this is going to be a process that needs to be robust, I'd suggest you
look for alternatives to HTTP POST to get those huge files to your server.
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"bienwell" wrote:
Hi all,

I developed an web page in ASP.NET to upload file into the server. In the
Web.config file, I declared
<httpRuntime executionTimeout="1200" maxRequestLength="400000" />

The MAX length is 129M or more for each file upload. I have 2 files
upload at the same time. Therefore, I set the timeout is 20min and the size
of file upload is 390MB (400,000 KBytes).

I've tried the file upload in 3 servers. One server accepted 2 file
(129MBytes for each) upload at the same time. The time to process was 3-4
minutes. In the other two servers, the upload didn't perform well. The
page kept running for over 30 minutes and nothing happened. I closed the
browser beacuse I was afraid it could bring the server down.

I don't know the way I was doing is right or wrong ? Please give me your
advises to upload the files with the big size like this.

Thank you

Mar 2 '07 #3
On Fri, 2 Mar 2007 11:15:12 -0500, bienwell wrote:
Hi all,

I developed an web page in ASP.NET to upload file into the server. In the
Web.config file, I declared
<httpRuntime executionTimeout="1200" maxRequestLength="400000" />

The MAX length is 129M or more for each file upload. I have 2 files
upload at the same time. Therefore, I set the timeout is 20min and the size
of file upload is 390MB (400,000 KBytes).

I've tried the file upload in 3 servers. One server accepted 2 file
(129MBytes for each) upload at the same time. The time to process was 3-4
minutes. In the other two servers, the upload didn't perform well. The
page kept running for over 30 minutes and nothing happened. I closed the
browser beacuse I was afraid it could bring the server down.

I don't know the way I was doing is right or wrong ? Please give me your
advises to upload the files with the big size like this.

Thank you
Personally for such large files I'd try as a first resort to use FTP to do
the transfers
--
Bits.Bytes
http://bytes.thinkersroom.com
Mar 3 '07 #4
"Rad [Visual C# MVP]" <no****@nospam.comwrote in message
news:1b***************@thinkersroom.com...
Personally for such large files I'd try as a first resort to use FTP to do
the transfers
Me too...
Mar 3 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: dave | last post by:
Hello there, I am at my wit's end ! I have used the following script succesfully to upload an image to my web space. But what I really want to be able to do is to update an existing record in a...
4
by: Joe | last post by:
Hello, I have IIS 6.0 running on w2k3 Enterprise. I have three upload forms 1 to have restricted uploads .asp 2 to upload plain .asp any extension 3 a FP form upload non .asp
18
by: Jen | last post by:
I'm using Microsoft's own VB.NET FTP Example: http://support.microsoft.com/default.aspx?scid=kb;en-us;832679 I can get the program to create directories, change directories, etc., but I can't...
9
by: 8anos | last post by:
Hello, I am new at the community and newbie at programming :) As you may know rapidshare provides a perl script for linux, to upload files at their servers. You can find the original scripts at...
0
by: foekall | last post by:
I used this script and test on my hosting. Evertimes appear "change permission to 777 failed. ". So, how to solve this error. Please kindly check for me and teach me. <?php $MAX_SIZE =...
0
by: aris1234 | last post by:
hello.. How to upload image file in page update ..?? i have logic like this : if user upload new image then old image must delete and update DB used new name if user not upload new image then...
2
by: Event Horizon | last post by:
Hi, I'm trying to add an simple upload applet to shopping cart script. My new applet form sends all needed post fields ( quantity, product, etc... ) but the "file" post field is hardcoded in...
2
by: hotflash | last post by:
Hi Master CroCrew, I found a good PURE ASP that will allow you to upload 10MB file to the server and the file contents such as Network, Author, Title, etc... will insert to MS Access at the same...
10
by: Devang | last post by:
Hello, I am using php script to upload file. some times if file size is too big(1GB) it takes too much time to upload. Can someone suggest me the way to increase upload speed. thanks
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.