Can't get performance counters data from server in load test
when i run a loadtest that try to get the performance counters data form the server,i always encounter following errors:
Exception LoadTestCounterCategoryNotFoundException The performance counter category '.NET CLR Data' cannot be accessed on computer 'MOSSTEST' (Timed out trying to read performance counter category '.NET CLR Data' on computer 'MOSSTEST') ; check that the category and computer names are correct. - -
Exception LoadTestCounterCategoryNotFoundException The performance counter category 'Memory' cannot be accessed on computer 'MOSSTEST' (Timed out trying to read performance counter category 'Memory' on computer 'MOSSTEST') ; check that the category and computer names are correct. - -
Exception LoadTestCounterCategoryNotFoundException The performance counter category '' cannot be accessed on computer 'MOSSTEST' (Invalid value '' for parameter 'categoryName'.) ; check that the category and computer names are correct. - -
According to some suggestions,I have already set my permission on the server(MOSSTEST) but yet i can't get the data and errors are still there.
Frankly,there is no way to go on for me
hope to get some help from here...
Thank you...
Answers
Hello lvxie,
You may try opening the file VSTestHost.exe.config in the folder C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE and add the following (sets a 1 minute timeout or longer) as shown below:<appSettings>
<add key="LoadTestCounterCategoryReadTimeout" value="60000"/>
<add key="LoadTestCounterCategoryExistsTimeout" value="60000"/>
</appSettings>
If the issue still exists, you may refer to this blog article and I believe you will have it resolved.
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Send us any feedback you have about the help from MSFT at fbmsdn@microsoft.com.- Marked As Answer byEdwer FangMSFT, ModeratorWednesday, November 04, 2009 2:31 AM
All Replies
Hello lvxie,
You may try opening the file VSTestHost.exe.config in the folder C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE and add the following (sets a 1 minute timeout or longer) as shown below:<appSettings>
<add key="LoadTestCounterCategoryReadTimeout" value="60000"/>
<add key="LoadTestCounterCategoryExistsTimeout" value="60000"/>
</appSettings>
If the issue still exists, you may refer to this blog article and I believe you will have it resolved.
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Send us any feedback you have about the help from MSFT at fbmsdn@microsoft.com.- Marked As Answer byEdwer FangMSFT, ModeratorWednesday, November 04, 2009 2:31 AM
Hi edwer:
The trouble has been resolved because of your suggestion...
thank you very much for your help.
you are superman, hehe...
stay foolish,stay hungry- Thanks!
This worked for me like a charm.
I needed to get the perfmon counters from a web server on another domain. I used the 'net use' command at which point perfmon locally could connect to perfmon on the web server. However, VSTS gave the error specified by lvxie.
I changed the config file as you said and now VSTS can record perfmon counters from the web server.
Thanks again!


