ASP.NET Performance Counters are all zero ... ?

M

Michael Carr

I am trying to monitor the performance of the ASP.NET applications using the
Performance Counters. However, when I add them to my performance monitor
they all show zero all the time. I added all the counters under ASP.NET,
ASP.NET Applications, ASP.NET 1.1.4322, and ASP.NET Apps 1.1.4322, but all
of them are zero. If I add a performance counter for some other category,
say Processor%, it works fine. I am using Windows Server 2003 with all the
patches in place. Any ideas?

Thanks,
Michael Carr
 
J

John Soulis [MSFT]

Hello Michael,
One of the reasons for this is that the account the W3WP process is running
under does not have suffient rights.
Add the account that the W3WP process is running under to the IIS_WPG group.
Please let me know if this helps.
Thank you,
John Soulis
Microsoft, ASP.NET

This posting is provided "AS IS", with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
 
M

Michael Carr

The W3WP service is running under NETWORK SERVICE and the IIS_WPG group
contains the following:

Administrator
IWAM_ ...
LOCAL SERVICE
NETWORK SERVICE
SYSTEM

I tried changing the W3WP service temporarily to LOCAL SERVICE, SYSTEM, and
Administrator but those didn't work either ...

Another hint : When I select "ASP.NET Apps 1.1.4322" there are no actual
ASP.NET apps listed in the instances box... only "_Total_"

Any other ideas? I believe I have a fairly vanilla installation of Server
2003 ... not sure what could be causing this problem.

Michael Carr
 
M

Michael Carr

Further experimentation ...

I changed the App Pool Identity to "Administrator" and then it worked!
Obviously I don't want to run my ASP.NET service under the Administrator
user, so I created a new user named "CustomASPNET" and added it to the
IIS_WPG, but it didn't work. So then just for fun I added CustomASPNET into
the exact same groups as the Administrator account but it STILL didn't
work!! What the heck could be going on here?

Some more info:
1. My Server 2003 box is a PDC
2. I am running Exchange 2003
Do either of these mean anything?

Michael Carr
 
J

John Soulis [MSFT]

I will see what other information I can find on this. As I suspected, it is
a permissions related issue.
Thank you,
John Soulis
Microsoft, ASP.NET

This posting is provided "AS IS", with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
 
J

John Soulis [MSFT]

Try this.
Use regedt32.exe
Go to
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ASP.NET_1.1.4322\Names.


Open the Security tab, and add the worker process identity with the
following
permissions:
Query Value
Set Value
Create Subkey
Enumerate Subkeys
Notify
Read Control

Thank you,
John Soulis
Microsoft, ASP.NET

This posting is provided "AS IS", with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
 
M

Michael Carr

Hey that worked!!

Being that I have a very vanilla installation of Windows Server 2003, I
think this solution deserves a Knowledgebase Article ... I definately would
have never figured this out on my own and I spent half a day or so looking
around on Google, Microsoft Support, MSDN, etc before posting the question
here.

Thanks a million!!
Michael Carr
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top