« Previous Next »

Not Answered Thread: Server Explorer and IIS7 WAS_W3WP performance counter

Last post 05-13-2009 8:35 PM by anilr. 11 replies.

 

RSS

Page 1 of 1 (12 items)

Sort Posts:

  • 04-15-2009, 4:27 PM

    • 129856
    • Not Ranked
    • Joined on 04-15-2009, 8:23 PM
    • Posts 7

    Server Explorer and IIS7 WAS_W3WP performance counter

    I'm using Visual Studio 2008 and when I use the Server Explorer to connect to a remote server (as the Administrator), I'm not able to see the new IIS7 performance counters WAS_W3WP and W3SVC_W3WP.  I've tried many changes to get them to show up, but no luck.  I can see all other performance counters.  I've searched this site and elsewhere.  Any suggestions?

  • 04-15-2009, 10:50 PM In reply to

    • lextm
    • Top 10 Contributor
    • Joined on 10-22-2008, 4:18 AM
    • Shanghai, PRC
    • Posts 2,407

    Re: Server Explorer and IIS7 WAS_W3WP performance counter

    As Server Explorer is a Visual Studio component, you may post this question on MSDN forums instead of this IIS specific forum.

    http://forums.microsoft.com/msdn/default.aspx?siteid=1

    Lex Li
    http://lextm.com
  • 04-16-2009, 9:13 AM In reply to

    • 129856
    • Not Ranked
    • Joined on 04-15-2009, 8:23 PM
    • Posts 7

    Re: Server Explorer and IIS7 WAS_W3WP performance counter

    I will try there, but there isn't a problem with Visual Studio, persay, because it will show counters for IIS, but just not those counters.  I figured it was along the lines of a permissions issue of some kind.  Thanks for the reply, I will try there as well.

  • 05-06-2009, 7:45 PM In reply to

    • 129856
    • Not Ranked
    • Joined on 04-15-2009, 8:23 PM
    • Posts 7

    Re: Server Explorer and IIS7 WAS_W3WP performance counter

     

     They told me to post it here. 

    http://social.msdn.microsoft.com/Forums/en-US/vssetup/thread/56dc2340-dae9-40af-b1a3-43b14f427504?prof=required

     This isn't just a problem in VS08, but when using the .net api, I get a "System.InvalidOperationException: Category does not exist" when trying to pull the catagories I mentioned in my earlier post.

    PerformanceCounterCategory catagory = new PerformanceCounterCategory("W3SVC_W3WP");

     

     

  • 05-06-2009, 9:07 PM In reply to

    • anilr
    • Top 10 Contributor
    • Joined on 05-23-2006, 10:13 PM
    • Redmond, WA
    • Posts 2,343

    Re: Server Explorer and IIS7 WAS_W3WP performance counter

    I tried the above line on a ws08 machine and it ran fine without any exception - what OS are you running it on?

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
  • 05-13-2009, 12:07 PM In reply to

    • 129856
    • Not Ranked
    • Joined on 04-15-2009, 8:23 PM
    • Posts 7

    Re: Server Explorer and IIS7 WAS_W3WP performance counter

    ws08.

    6.0.6001 Service Pack 1 Build 6001

     

  • 05-13-2009, 12:32 PM In reply to

    • 129856
    • Not Ranked
    • Joined on 04-15-2009, 8:23 PM
    • Posts 7

    Re: Server Explorer and IIS7 WAS_W3WP performance counter

    By the way, I can see them and get data through the Windows perfmon app, confirming that they are loaded and exist.  I'm on a 64-bit box and have confirmed 64 bit everything, worker process, etc.  Of course Visual Studio is 32 bit.  I even installed Visual Studio on the 64-bit box where I'm trying to get it to work to make certain there weren't issues between my 32-bit workstation and the 64-bit box.  I'm able to get other counters with my application, including HTTP Service, Web Service, and ASP.NET categories.

  • 05-13-2009, 1:48 PM In reply to

    • 129856
    • Not Ranked
    • Joined on 04-15-2009, 8:23 PM
    • Posts 7

    Re: Server Explorer and IIS7 WAS_W3WP performance counter

    I've got to be doing something wrong. 

    lodctr export from same command window as application runs shows it exists

    [PERF_W3SVC]
    First Counter=4378
    First Help=4379
    Last Counter=4640
    Last Help=4641

     

    Registry shows it exists.  It is listed in

    HKEY_LOCAL_MACHINE/SOFTWARE/MICROSOFT/WINDOWS NT/CurrentVersion/Perflib/009/Counter

    Processor State Flags
    4642
    W3SVC_W3WP
    4644
    Total HTTP Requests Served
    4646
    Requests / Sec
    4648

  • 05-13-2009, 2:02 PM In reply to

    • anilr
    • Top 10 Contributor
    • Joined on 05-23-2006, 10:13 PM
    • Redmond, WA
    • Posts 2,343

    Re: Server Explorer and IIS7 WAS_W3WP performance counter

    It must be something to do with 64-bit OS and the fact that VS is 32-bit only.

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
  • 05-13-2009, 2:31 PM In reply to

    • 129856
    • Not Ranked
    • Joined on 04-15-2009, 8:23 PM
    • Posts 7

    Re: Server Explorer and IIS7 WAS_W3WP performance counter

    How did you compile your test that worked? 

    I ensured I compiled as 64-bt and ran from 64-bit command prompt.

  • 05-13-2009, 8:29 PM In reply to

    • lextm
    • Top 10 Contributor
    • Joined on 10-22-2008, 4:18 AM
    • Shanghai, PRC
    • Posts 2,407

    Re: Server Explorer and IIS7 WAS_W3WP performance counter

    (deleted)

    Lex Li
    http://lextm.com
  • 05-13-2009, 8:35 PM In reply to

    • anilr
    • Top 10 Contributor
    • Joined on 05-23-2006, 10:13 PM
    • Redmond, WA
    • Posts 2,343

    Re: Server Explorer and IIS7 WAS_W3WP performance counter

    I tested on 32-bit OS - I will give it a try on 64-bit.

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
Page 1 of 1 (12 items)