w3wp.exe takes up 100% of CPU resources

Last post 02-16-2009 2:02 PM by Bruce L. 2 replies.

Sort Posts:

  • w3wp.exe takes up 100% of CPU resources

    02-16-2009, 8:21 AM
    • Member
      point Member
    • anumadhyani
    • Member since 02-13-2007, 6:28 AM
    • Posts 1

    Hi,

     

    I am working on a web application. It is made in asp.net 1.1. Everything works fine except for paging in datagrid. As soon as i click next page the page hangs.The page changed event has regular stuff, there is nothing wrong with the code. On analysis i found that w3wp.exe in NETWORK SERVICES takes up 100% CPU resources and the system hangs. I have no clue why this might be happening.

     

    Can someone please tell, why this might be ahppening. This is critical for the release of the project. Any help will be appreciated.

     

    Thanks in Advance.

     

    Regards

    Anuradha

    Filed under:
  • Re: w3wp.exe takes up 100% of CPU resources

    02-16-2009, 9:26 AM
    • Participant
      786 point Participant
    • arunkumar2003
    • Member since 02-14-2009, 12:04 PM
    • Chennai
    • Posts 118

    This may be due to many reasons:

    1. calling databind() inside the databound() method

    2. Trying to access a property inside the same property

    Example public int i

                  {  get{

                             i=i*10;

                             return i;

                          }

                  }

    If it is happening for a particular page, then there is a loop in your code.

    If you send the code, it is easy for me to find.

     

    Thanks,

    Arunkumar

     

    MARK AS ANSWER IF IT IS USEFUL

  • Re: w3wp.exe takes up 100% of CPU resources

    02-16-2009, 2:02 PM
    Answer
    • Star
      11,404 point Star
    • Bruce L
    • Member since 02-08-2007, 1:53 PM
    • Posts 1,923

    You can also consider creating a crash dump report w/ DebugDia.

    http://www.microsoft.com/downloadS/details.aspx?FamilyID=28bd5941-c458-46f1-b24d-f60151d875a3&displaylang=en

     

    Bruce
    DiscountASP.NET - ASP.NET Hosting Experts
    Voted 2009 "Best ASP.NET Hosting" by asp.netPRO Magazine
    Win2008/IIS7.0, ASP.NET 2.0/3.5 SP1, MVC, AJAX, Silverlight, SQL 2008/2005
Page 1 of 1 (3 items)