How to reduce w3wp.exe CPU Usage

Problem : w3wp.exe is taking all CPU usage, which is resulting in slow loading of my website.

If you are having Virtual Dedicated Server or Dedicated Server with Godaddy, and when you open task manager and click on process tab, you will see one process w3wp.exe is consuming your whole CPU Memory.

If your website is hosted on godaddy and if you contact those guys to solve this issue, they will only tell, there is some memory leakage in your code, please check your code and try to solve yourself, and they will send you few microsoft link, if you open that link, you will find thats not your cup of tea.

And if you request them to solve this, they will charge you lot of $,

but you dont know exaclty, what this is happening, read this below post to know how to solve this issue of w3wp.exe high CPU Usage.

Solution : This is happening due to your dynamic pages getting stored in client computer at request, so if you have high traffice website then you can feel slowness of your website within few minutes.

What you have to do is, just use this code during Page load of your dynamic page and this is not store any cache to your server and w3wp.exe will get fresh data everytime.

  Response.AppendHeader("Cache-Control", "no-cache; private; no-store; must-revalidate; max-stale=0; post-check=0; pre-check=0; max-age=0");
Response.AppendHeader("Pragma", "no-cache");
Response.AppendHeader("Keep-Alive", "timeout=3, max=993");
Response.AppendHeader("Expires", "Mon, 26 Jul 1997 05:00:00 GMT");

Please comments us back, if you face any issue while doing this ...
 
Thanks & Regards, 
Induway Technical Team, 
Induway Technologies,
 www.induway.com 
Email : inquiry@induway.com

 

 

Disclaimer: This is a genuine effort by www.Induway.com, Induway Technologies is in no way responsible for the above mentioned information it is solely based upon the research work.

 

2 Responses to How to reduce w3wp.exe CPU Usage

  1. john says:

    Thanks...this is what i was looking for..

    thanks for the solution..it saved my lot of time.

    Thank you so much :)

  2. Sunil says:

    Hi Induway,

    Thank you so much.

    I have same issue and solved it becoz of ur article.

    Good article.

    Thanks
    Sunil Kadu

Leave a Reply

Your email address will not be published. Required fields are marked *