Results 1 to 7 of 7
-
08-08-2011, 06:22 PM #1WHT Addict
- Join Date
- Jul 2011
- Location
- Atlanta Area
- Posts
- 105
w3wp.exe process shooting to 100% usage
I just moved to a VPS, from Shared Hosting, a few weeks ago and have been having CPU Usage and memory problems ever since.
Here are my specs:
- Running Windows Web Server 2008 R2
- 5 GB or Ram + 2 GB virtual
- SQL Server 2008 r2 database on the same VPS.
- ASP.net 4.0
The main problem seems to be with the w3wp.exe process periodically taking up all of the resources. I’m not certain this is the case, but the problem seems to occur when the application pool recycles. It doesn’t happen every time the application pool recycles. That’s the only thing that seems to be related to the w3wp.exe process shooting to 100% usage. The only way to get the site back up is to restart IIS and the application pool. Another strange thing, maybe completely unrelated, is that my disk space usage seems to be increasing at an unusually high rate.
I’ve tried the following:
- Change session timeout to 20 minutes instead of 45 minutes.
- Checked my ASP.Net C# coding
- Disabled Viewstate and caching on certain popular dynamic pages
- Indexed all SQL Server 2008 tables.
- Made sure not pages were in Debug=true mode
Not sure what is causing this, but again, the only thing that seems to be related to the w3wp.exe process shooting to 100% usage is the application pool recycling…but I’m trying to verify that now.
Any help anyone can provide is greatly appreciated
Thanks, Sleep deprived.
-
08-08-2011, 11:09 PM #2Web Hosting Master
- Join Date
- Feb 2007
- Location
- USA, UK, Singapore
- Posts
- 3,481
If this is happening frequently, it means that there is something amiss with your application. Did you try to check event viewer and see if there are any application error logged? I believe you have disabled Rapid Application fail which would allow application pool to stay active in spite of repeated application failures.
██ SoftSys Hosting ██ - 14 Years In Business - 24/7 In-House Support - Enterprise Class Replicated Cloud Servers For HA
Cloud Hosting With Anti-Malware, IDS/IPS, WAF & Litespeed - Windows 2019 Shared Hosting w/ Plesk
-
08-09-2011, 12:00 AM #3Junior Guru Wannabe
- Join Date
- Jul 2011
- Location
- India
- Posts
- 52
w3wp.exe will be originating from software's you installed on your server. So you need to check it in application level.
You can check in registry for more errors I believe.
-
08-09-2011, 05:43 AM #4Eternal Learner
- Join Date
- Jul 2007
- Posts
- 2,051
It seems to be a problem with poor coding. You may install Process Explorer in the server and find out which application pool is processing the worker process. If you have separate application pools for each website, well and good, but if you have a single application pool for all websites, then there is some hard work. Anyways, you can then install IISTracer in the server and find out which URLs are being accessed at the time of the 100% cpu usage. You can dig up further to find out the exact cause of the w3wp.exe consuming 100% CPU.
Prashant T.
Don't run after Success. Run after Excellence and Success will soon follow.
-
08-09-2011, 07:02 AM #5WHT Addict
- Join Date
- Jul 2011
- Location
- Atlanta Area
- Posts
- 105
-
08-12-2011, 05:08 PM #6WHT Addict
- Join Date
- Jul 2011
- Location
- Atlanta Area
- Posts
- 105
The strange thing is that there are never application log "errors" only "warnings". The warnings are things that can't be corrected, like hackers probing with wrong query strings or Google trying to access pages using an old url with a colon in it. And again, they are just log "Warnings".
My application builds in VS 2010 without any error.
I've just updated R2 to see if that fixes anything. I'll post my findings.
-
08-12-2011, 11:34 PM #7Junior Guru Wannabe
- Join Date
- Jul 2011
- Location
- Kansas City, MO, USA
- Posts
- 35
These kind of injections can cause internal problems within the code (string parsing loops that never terminate, database connections or sessions not closing correctly) and could easily cause the kind of behavior you are describing.
If you have access to modify the application, I would strengthen your input sanitizing and error-checking to make sure that everything exits cleanly every time.Secure 99.9%+ Uptime Custom VPS and Shared Hosting Solutions
Penetration Testing and Security Audits
Eclipze Computing LLC
Similar Threads
-
ASP - W3WP.EXE memory utilization Problem
By engineersaeed in forum Web HostingReplies: 1Last Post: 01-24-2008, 03:53 AM -
W3wp.exe using up memory resources on Windows server
By nexlogic in forum Dedicated ServerReplies: 2Last Post: 07-24-2007, 11:38 AM -
w3wp.exe problem
By elgeberymg in forum Hosting Security and TechnologyReplies: 2Last Post: 01-18-2007, 03:22 AM -
w3wp.exe in task manager consuming 100% cpu usage
By mooodi in forum Hosting Security and TechnologyReplies: 5Last Post: 12-07-2006, 07:41 PM -
ASP/w3wp.exe hanging about
By puggy in forum Programming DiscussionReplies: 0Last Post: 10-31-2005, 10:13 PM