Previous Next

Thread: w3wp.exe high cpu usage

Last post 08-04-2008 9:06 PM by bobkate. 7 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (8 items)

Sort Posts:

  • 11-02-2007, 5:02 AM

    • braidiano
    • Not Ranked
    • Joined on 11-02-2007, 8:58 AM
    • Posts 2
    • braidiano

    w3wp.exe high cpu usage

    Hi,

    i have a w3wp.exe that uses 80-90% cpu for a lot of time. How can i find what asp script causes this?

    i maked a userdump through debug diag, but it doesn't help me, because there wasn't any reference to the asp script that launches the threads.

    Thanks!

     

  • 11-05-2007, 5:15 AM In reply to

    Re: w3wp.exe high cpu usage

    Hi you can use Logparser to analyze logfile and find witch page have long time execution

    Use the following code 

    c:\> logparser "select top 10 cs-uri-stem, time-taken from ex071105.log group by cs-uri-stem order by time-taken desc" -q:on

     

    Christian Paparelli
    [Microsoft MVP Window Server - IIS]
    http://mvp.support.microsoft.com
    http://italy.mvps.org
    My job: http://www.ithost.ch
    My blog: http://blogs.aspitalia.com/cp
    Tags:
  • 11-06-2007, 2:27 PM In reply to

    • braidiano
    • Not Ranked
    • Joined on 11-02-2007, 8:58 AM
    • Posts 2
    • braidiano

    Re: w3wp.exe high cpu usage

    thanks for your reply. I tried it I obtain pages that are slow consequently to the high cpu usage.

    I wold like to find the asp page that has got malformed code and that uses 100% cpu. I think that the cause of this trouble is in any script included in index.asp through include virtual directive, or by the 404 custom error page, used to generate dynamically all pages with the data stored in a mysql db.

     is there any way to find the exact source code or to trace in details any asp request?

     
    thanks

     

  • 11-08-2007, 5:06 AM In reply to

    Re: w3wp.exe high cpu usage

    Christian Paparelli
    [Microsoft MVP Window Server - IIS]
    http://mvp.support.microsoft.com
    http://italy.mvps.org
    My job: http://www.ithost.ch
    My blog: http://blogs.aspitalia.com/cp
  • 07-13-2008, 11:05 AM In reply to

    • bmassicotte
    • Not Ranked
    • Joined on 07-13-2008, 3:03 PM
    • Posts 1
    • bmassicotte

    Re: w3wp.exe high cpu usage

    There is a program that will track what is running and for how long within IIS. It is called IISPeek. You can find it if you Google it. It helped me and it was easy to use.

    Good luck

  • 07-14-2008, 5:15 AM In reply to

    • Rovastar
    • Top 10 Contributor
    • Joined on 03-13-2008, 2:00 PM
    • London, UK
    • Posts 515
    • Rovastar

    Re: w3wp.exe high cpu usage

    First off you need to establish what appliaction pool the w3wp.exe is attached to.

    in task manager show the processID of the task

    and run the IIS script iisapp.vbs to show what application pool is attached to what teh offending w3wp.

    IF there are multiple applications in that pool seperate them off futher to narrow down the search if possible.

    Most overused word in IT is 'should' as in 'That should work!?!'
  • 07-26-2008, 9:37 PM In reply to

    Re: w3wp.exe high cpu usage

    bmassicotte:

    There is a program that will track what is running and for how long within IIS. It is called IISPeek. You can find it if you Google it. It helped me and it was easy to use.

    Good luck

     

     Thanks!  We had a worker process that would occasionally tie up the CPU for several minutes.  We knew it was one of our scripts but couldn't figure out which one.  We were trying to narrow down the search by looking at the IIS logs to determine what was running at the time and possibly how long.  I downloaded IISPeek and the next time we saw the CPU max out, we were able to find the problem page instantly.

    Nice find!

  • 08-04-2008, 9:06 PM In reply to

    • bobkate
    • Not Ranked
    • Joined on 08-04-2008, 8:57 PM
    • Posts 1
    • bobkate

    Re: w3wp.exe high cpu usage

    Thank you ! Thank you !

    I have been parsing IIS logs forever trying to determine what was running spiking my CPU. I bought two licenses for my web servers and found that a page was running a super bad query and killing performance. I did try the way the other post instructs but was not sure of the result(probably my own error). For the price, it was a no brainer! Saved me hours.

    Thanks for the post!

Page 1 of 1 (8 items)
Page view counter