Team System Developer Center > Visual Studio Team System Forums > Visual Studio Team System - Testing > Can't get performance counters data from server in load test
Ask a questionAsk a question
 

AnswerCan't get performance counters data from server in load test

  • Thursday, October 29, 2009 1:47 AMlvxie Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    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

  • Friday, October 30, 2009 6:17 AMEdwer FangMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    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.

All Replies

  • Friday, October 30, 2009 6:17 AMEdwer FangMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    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.
  • Monday, November 02, 2009 10:30 AMlvxie Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    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
  • Monday, November 09, 2009 9:59 PMboyan100 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    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!