473,402 Members | 2,072 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,402 software developers and data experts.

w3wp.exe High CPU Utilization

I am experiencing high CPU utilization with my ASP.NET application.
The w3wp.exe process uses 75%-80% CPU for about 10 seconds. I notice
this when the application first starts up, which I can partially
understand since ASP.NET compiles the application on the first access.
However, I also notice the high CPU usage by w3wp.exe after long
periods of inactivity. For example, if I stop using the site for 30
minutes, and then come back to the site, I see the CPU usage spike
again. As long as I continue to use the site, it is very fast.

I'm using Windows Server 2003. I have not changed any configuration
settings in ASP.NET or the .NET Framework (i.e. the machine.config
file). I have several (less than 10) assemblies in my application's
\bin directory.

I put simple log statements (to the Windows event log) in my
application's Application_Start() method. Work performed there takes
approximatley 3 seconds. So far I am unable to determine where the
remaining approximately 7 second delay comes from.

Any suggestions on places to look to determine and reduce the
application's start-up time would be greatly appreciated.
Thank You

Nov 19 '05 #1
5 15183
Hello

The default IIS 6 setting for an application is shutdown worker processes
after being idle for 20 minutes. So when a new request comes after 30
minutes of being idle a you said, IIS will start and initialized the worker
process again. It will JIT compile every method in your application at first
access. So you will experience a great delay on first access. You can change
this setting (and other performance settings) from IIS manager, under
Application Pools.

Best regard,
Sherif

"mcollier" <mi*************@gmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
I am experiencing high CPU utilization with my ASP.NET application.
The w3wp.exe process uses 75%-80% CPU for about 10 seconds. I notice
this when the application first starts up, which I can partially
understand since ASP.NET compiles the application on the first access.
However, I also notice the high CPU usage by w3wp.exe after long
periods of inactivity. For example, if I stop using the site for 30
minutes, and then come back to the site, I see the CPU usage spike
again. As long as I continue to use the site, it is very fast.

I'm using Windows Server 2003. I have not changed any configuration
settings in ASP.NET or the .NET Framework (i.e. the machine.config
file). I have several (less than 10) assemblies in my application's
\bin directory.

I put simple log statements (to the Windows event log) in my
application's Application_Start() method. Work performed there takes
approximatley 3 seconds. So far I am unable to determine where the
remaining approximately 7 second delay comes from.

Any suggestions on places to look to determine and reduce the
application's start-up time would be greatly appreciated.
Thank You

Nov 19 '05 #2
Why does it have to JIT it each time the process is started? I noticed
what appear to be compiled versions of the pages under the
"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temp orary ASP.NET Files"
directory. Wouldn't these pages be used when the worker process
restarts?

Do you know of a MSDN, or similar, site that discusses this process? I
would like to learn more about how this works.
Thanks!

Nov 19 '05 #3
one reason is that a restart may mean that files have changed. if this is
the case, then some assemblies need to be recompiled and the jit cache
should be flushed accordingly if the methods come from these dirty
assemblies

--
Regards,
Alvin Bruney
[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
available at www.lulu.com/owc
_________________________
"mcollier" <mi*************@gmail.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
Why does it have to JIT it each time the process is started? I noticed
what appear to be compiled versions of the pages under the
"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temp orary ASP.NET Files"
directory. Wouldn't these pages be used when the worker process
restarts?

Do you know of a MSDN, or similar, site that discusses this process? I
would like to learn more about how this works.
Thanks!

Nov 19 '05 #4
Hello

The compiled in in Temp ASP.NET files are IL dlls not native dlls they have
to be JIT compiled at runtime. The JIT compiler compiles the code to memory
and doesn't save a copy of the native code to disk. So all JIT compiler's
work is lost when the process is terminated.
The performance hit when the process is restarted is not only due to JIT. It
is also because of the process itself loading.

As I said the process restarts in your case were due to 20 minutes idle
timeout. You can simply avoid them by modifying your IIS settings. In a
production scenario, the traffic is usually higer such that the worker
process should never be idle for more than 20 minutes.

Best regards,
Sherif

"mcollier" <mi*************@gmail.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
Why does it have to JIT it each time the process is started? I noticed
what appear to be compiled versions of the pages under the
"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temp orary ASP.NET Files"
directory. Wouldn't these pages be used when the worker process
restarts?

Do you know of a MSDN, or similar, site that discusses this process? I
would like to learn more about how this works.
Thanks!

Nov 19 '05 #5
Is the default shutting down of the worker process just to conserve
system resources? The high CPU utilization from w3wp.exe likely due to
the JIT and reloading?

I'll need to find some good documentation on this process. Mainly so
that I can point my colleagues to it too.

Nov 19 '05 #6

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

Similar topics

3
by: Evan Smith | last post by:
Scenario: new functionality was recently deployed in a 3-tier business application. Since deployment, CPU use has shot up to very high levels. Using event monitors to try to track down the...
1
by: Gaël | last post by:
Hi everybody! I have a really big problem with ASP.NET application. I noticed that the w3wp.exe memory size, increase with the time and the use of my website. When it raise a certain value, w3wp...
3
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...
4
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...
27
by: mohamed27 | last post by:
hi : i have a server with OS (2003 server) and i have a high usage of memory ,when i opened my task manger i found that w3wp.exe is the high application usage of memory this make ths...
6
by: =?Utf-8?B?U3RlZmFuIEJhcmxvdw==?= | last post by:
Unable to get the private bytes memory limit for the W3WP process. The ASP.NET cache will be unable to limit its memory use, which may lead to a process restart. Error: 0x80070005 ...
8
by: =?Utf-8?B?dGFuaQ==?= | last post by:
Hello there, one of my servers is running windows 2003 and IIS 6.0. We have big performance issues on that server and I found out that a high CPU usage iniciated by w3wp.exe causes the problem....
1
by: Kaheru | last post by:
memory utilization increase? This is because when i try to keep track of the CPU utilization and memory utilization of my FTP server process (ftpserver.exe), the CPU utilization increase, but the...
10
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: 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
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
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...
0
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,...
0
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...
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.