Print Page | Close Window

Large uploads causes massive CPU utilization

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums Modifications
Forum Description: Mod's and Add-on's for Web Wiz Forums.
URL: https://forums.webwiz.net/forum_posts.asp?TID=25971
Printed Date: 30 March 2026 at 12:17pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Large uploads causes massive CPU utilization
Posted By: terk
Subject: Large uploads causes massive CPU utilization
Date Posted: 17 July 2008 at 12:12pm
I'm experiencing some problems with uploading large files on my installation of WebWiz Forums 9. I need to be able to upload files larger than 2MB, so I've done the necessary changes in the IIS metabase to accomodate this.

Everything seems to be working just fine for smaller files (up to 2-3 MBs), but when I upload a file larger than that the application worker process (w3wp.exe) starts using massive amounts of CPU time. For a 8MB file, the upload process takes about 3 minutes, and most of this time is spent in kernel mode.

I've tried using debug diag on the process, and I've identified the thread that's causing my problems:

Thread 9 - System ID 2924
Entry point   msvcrt!_endthreadex+2f
Create time   08.07.2008 13:21:27
Time spent in user mode   0 Days 00:00:02.437
Time spent in kernel mode   0 Days 00:02:47.875

Function   Source
ntdll!KiFastSystemCallRet   
ntdll!NtWaitForMultipleObjects+c   
kernel32!WaitForMultipleObjectsEx+11a   
user32!RealMsgWaitForMultipleObjectsEx+141   
user32!MsgWaitForMultipleObjects+1f   
comsvcs!CSTAThread::WorkerLoop+1f9   
msvcrt!_endthreadex+a3   
kernel32!BaseThreadStart+34   

Unfortunately I'm not all that experienced in debugging processes, so this doesn't really tell me all that much.

I'm running the forum software on a 2003 SE Server w/SP2. I've tried using both Persits and Dundas upload components, but the result is exactly the same.

Has anybody experienced similar problems? Any help would be greatly appreciated Smile



Replies:
Posted By: WebWiz-Bruce
Date Posted: 17 July 2008 at 1:05pm
This is the very reason why Microsoft have this limit set in IIS.

If you want to upload larger files then you should return IIS to it's default state to prevent further issues and use AspUpload instead to upload files.

AspUpload supports uploads up to 4gig in size. Web Wiz Forums uses this component to upload directly to the hard disk rather than memory so places very little load of the web server.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: terk
Date Posted: 17 July 2008 at 1:16pm
First of all, thanks for answering me so quickly Smile

When you say AspUpload, I'm guessing you're not talking about Persits AspUpload... Do you have a link to the component you're talking about?



Posted By: WebWiz-Bruce
Date Posted: 17 July 2008 at 2:44pm
Yes Persits AspUpload which is available from www.aspupload.com

In tests have found that this is the best component and places the least load on the server.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: terk
Date Posted: 18 July 2008 at 8:00am
Hmm, okay.. You see the thing is, I am using the aforementioned AspUpload, but it does not seem to be performing any better than Dundas upload component.

Do I need to tweak/change functions_upload.asp in any way to improve performance? The source code contains the following comment:
   
'** Save the file to the hard drive as saving to memory is often disabled by the web host **


Posted By: WebWiz-Bruce
Date Posted: 18 July 2008 at 8:13am
Nothing needs to be altered within Web Wiz Forums.

Make sure that you are using the latest version of AspUpload.

We have AspUpload running on all our servers here, including those for our web hosting services, and have never seen high CPU utilisation when using AspUpload.

If could be a server issue. Do you use software RAID 1 at all? If you do then writing to disk uses allot more resources than reading and may well explain the issue. Using hardware RAID may well sort the issue.

You may a,so want to contact Persits AspUpload support as they may well have a solution to this.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: terk
Date Posted: 18 July 2008 at 8:27am
I'm using version 3.0.0.6 of AspUpload, and there is no software RAID in place. The server is, however, running on VmWare ESX Server 3.0.2.

Thanks for all your help, I guess I'll try my luck with the guys at Persits next Smile


Posted By: WebWiz-Bruce
Date Posted: 18 July 2008 at 9:17am
We use several productions and development servers on VmWare Server including the Win2k8 installation for this web site.

Did find a few things though like massive CPU utilisation on the host machine when guests did allot of writing to disk or memory so had to disable the option for virtual machines to be able to swap memory.

For the settings for each virtual server also found that had to disable memory page trimming.

After tweaking these settings got allot more performance out on the VM's.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net