Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Large uploads causes massive CPU utilization
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Large uploads causes massive CPU utilization

 Post Reply Post Reply
Author
terk View Drop Down
Newbie
Newbie
Avatar

Joined: 17 July 2008
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote terk Quote  Post ReplyReply Direct Link To This Post Topic: Large uploads causes massive CPU utilization
    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
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
terk View Drop Down
Newbie
Newbie
Avatar

Joined: 17 July 2008
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote terk Quote  Post ReplyReply Direct Link To This Post 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?

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
terk View Drop Down
Newbie
Newbie
Avatar

Joined: 17 July 2008
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote terk Quote  Post ReplyReply Direct Link To This Post 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 **
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
terk View Drop Down
Newbie
Newbie
Avatar

Joined: 17 July 2008
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote terk Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.