Re: W3WP at 100% CPU

Discussion in 'ASP .Net' started by Jason Bailey, Sep 22, 2004.

  1. Jason Bailey

    Jason Bailey Guest

    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

    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.


    Helge wrote:
    > I'm developing a web site with, 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, no extra stuff like Commerce server or anything.
    > Please? Any clues or help would be much appreciated!
    > Helge
    Jason Bailey, Sep 22, 2004
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?Um95?=

    RE: W3WP at 100% CPU

    =?Utf-8?B?Um95?=, Jan 14, 2005, in forum: ASP .Net
    Kevin Spencer
    Jan 14, 2005
  2. Jacky via

    w3wp.exe 100% CPU

    Jacky via, Sep 5, 2005, in forum: ASP .Net
    Juan T. Llibre
    Sep 6, 2005
  3. Steve G

    Another CPU 100% w3wp.exe issue?

    Steve G, Jun 23, 2008, in forum: ASP .Net
    Steve G
    Jun 24, 2008
  4. fred
    Mar 17, 2005
  5. Replies:

Share This Page