473,786 Members | 2,462 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

W3WP at 100% CPU

I'm developing a web site with asp.net, mainly vb on a Windows 2003 server.
Quite often the web site stops responding for 15-20 seconds.
A web page that usually take 2 seconds to produce takes forever.
During this time,the w3wp process takes 100% of the CPU time.

I'm using only asp.net, no extra stuff like Commerce server or anything.

Please? Any clues or help would be much appreciated!

Helge
Nov 21 '05 #1
3 10400
This type of issue really takes being there at the console to track down
the cause. First places to look:

1) Any loops in your code that do not use the foreach() construct. Is
there an infinite loop problem?

2) Does the page consistently take 15-20 seconds to come up on each
view? If so, what is the page doing during this time? Are you
performing "expensive" parsing of strings, XML, serializing datasets, etc.?

3) If the slowness happens intermittently, when does it seem to happen
most often? During peak usage? Are there resource contention issues
between pages trying to read/write to the same data on the drive?

4) Are you performing XSLT transformations on the web server that are
transforming large sets of XML? This recursion can appear like an
infinite loop problem but ultimately the server recovers after the XSLT
completes.

5) Are you performing any sort of resource intensive encrypts/decrypts
of data on the server?

6) If the above fails to reveal the problem, you might try wiring up
WMI in your ASP.NET page to write instrumentation data to a logfile so
you can capture which method call is consistently causing the CPU spike.
That will give you a great place to look but takes the up front time
to set this up and roll to production. In some shops, that process can
be more arduous than chasing down the issue ad hoc in prod when the
problem occurs.

Hope this helps.

Jason

Helge wrote:
I'm developing a web site with asp.net, mainly vb on a Windows 2003 server.
Quite often the web site stops responding for 15-20 seconds.
A web page that usually take 2 seconds to produce takes forever.
During this time,the w3wp process takes 100% of the CPU time.

I'm using only asp.net, no extra stuff like Commerce server or anything.

Please? Any clues or help would be much appreciated!

Helge

Nov 21 '05 #2
Roy
Bump...

This exact same thing happens to me consistantly with the exact same
equipment/software. Has a hotfix been developed for this? I've trimmed my
page down to barebones and still the issue occurs.

"Helge" wrote:
I'm developing a web site with asp.net, mainly vb on a Windows 2003 server.
Quite often the web site stops responding for 15-20 seconds.
A web page that usually take 2 seconds to produce takes forever.
During this time,the w3wp process takes 100% of the CPU time.

I'm using only asp.net, no extra stuff like Commerce server or anything.

Please? Any clues or help would be much appreciated!

Helge

Nov 23 '05 #3
Hot fix for what? Having the same symptoms as someone else doesn't mean you
have the same disease. Generally speaking, this doesn't happen. Thereofre,
it must be caused by something else (other than ASP.Net). If, indeed, you
have "trimmed my page down to barebones and still the issue occurs" you
might want to check other software and/or services running on the machine.
The most likely candidate would be anti-virus software. But it might also be
some other security-related software, or even something else altogether,
such as a hack attack (give me a few hours and I might be able to think of a
half-dozen alternatives).

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"Roy" <Ro*@discussion s.microsoft.com > wrote in message
news:4B******** *************** ***********@mic rosoft.com...
Bump...

This exact same thing happens to me consistantly with the exact same
equipment/software. Has a hotfix been developed for this? I've trimmed my
page down to barebones and still the issue occurs.

"Helge" wrote:
I'm developing a web site with asp.net, mainly vb on a Windows 2003
server.
Quite often the web site stops responding for 15-20 seconds.
A web page that usually take 2 seconds to produce takes forever.
During this time,the w3wp process takes 100% of the CPU time.

I'm using only asp.net, no extra stuff like Commerce server or anything.

Please? Any clues or help would be much appreciated!

Helge

Nov 23 '05 #4

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

Similar topics

3
467
by: Helge | last post by:
I'm developing a web site with asp.net, mainly vb on a Windows 2003 server. Quite often the web site stops responding for 15-20 seconds. A web page that usually take 2 seconds to produce takes forever. During this time,the w3wp process takes 100% of the CPU time. I'm using only asp.net, no extra stuff like Commerce server or anything. Please? Any clues or help would be much appreciated! Helge
3
5049
by: Tod Birdsall | last post by:
Hi All, The organization I am working for has created a new corporate website that used Microsoft's Pet Shop website as their coding model, and dynamically served up content, but cached each page by content ID. The site appears to be working well. It is hosted on a Windows 2003 server with 2 Gigs of RAM. It was built using Visual Studio .NET 2005 and us running under the .NET Framework 2.0 Beta The Issue :
3
3356
by: MattC | last post by:
I have an ASP.NET app that is running at around 60MB for the w3wp.exe. This often jumps very quickly to 100/120 MB before shrinking again. It is also using around 250MB of virtual memory. Is it normal for the memory usage to jump around so much? Also the server is a PIII 730 with 256MB RAM, running Windows 2003 Server. I would appreciate information form other developers memory usage. TIA
4
7832
by: AN | last post by:
Greetings, We make an ASP.NET web application and we host it for our customers. We have provisioned hardware and hope to be able to service around 200 customers on this hardware. The web servers are in a stateless farm and have 2 GB of RAM. We are using ASP.NET 1.1 when using a dedicated application pool for each virtual directory. Each customer gets their own virtual directory and copy of the ASP.NET dll in their bin folder, which...
3
2827
by: James Hunter Ross | last post by:
Friends, We are preparing for Beta release of a new ASP.NET project, but our initial in-house tests are not going well. We have had W3WP.exe (and aspnet_wp.exe) die, and we feel we can monitor it's death and sometimes get useful information out of the DMP file. But lately, W3WP.exe lives, but appears hung. New request to the application hang unresponsive, existing user sessions are unresponsive, and eventually session timeout and go...
0
5464
by: Mark A. Ziesemer | last post by:
I've seen a few other postings that looked similar to this, but most appear to have died without any working solutions, and lacked any helpful level of information to see if they might be related. I'm thinking this is an ASP.Net 2.0 bug, but would like to try to elaborate it further. I'm hoping to see if someone else may be having the same issue. Error: (Popup on the desktop) Title: "w3wp.exe - Application Error"
1
4131
by: ahmnasa | last post by:
Hi all, OK so I have windows 2003 server that's has been running for over 2 years now without a problem. I have over 20 ASP.NET and ASP 3.0 websites running on it with most using the SQL Server Database on the server. Now all of a sudden IIS (w3wp.exe) has started to go to 100% CPU or try to for no apparent reason. I restarted the server but it still does it. I restarted the IIS Services and w3wp disappears but as soon as I click...
6
4801
by: Anand Saha | last post by:
Machine: 32 bit Intel Xeon 2.93 GHz, 16 CPUs, 32 GB RAM OS: Windows Server 2003 R2 Ent Edition, SP2 Web Server: IIS 6 ASP.NET ver: 2.0 I made a simple ASP.NET application, with only this code in the Page_Load, to simulate a condition where huge memory is utilized by the app: int i = 0;
10
2993
by: =?Utf-8?B?U2Vhbg==?= | last post by:
I have two win2003 sp1 servers running iis 6.0 running the same application. When I connected to the first server a W3WP process (application pool is created) whoose size is approax 14MB When I connect to the other machine the size is approx 114MB. Does anyone have any idea what the extra 100 MB is being used for One Thing to note .NEt 1.1 was installed on the server consuming the 100MB. I have removed the extension and uninstalkled the...
0
9647
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9496
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10363
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10164
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9961
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6745
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5397
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5534
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3669
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.