Ask a Question

Performance counters error/warning while trying to get value

tphillips
Frequent Contributor

Performance counters error/warning while trying to get value

I have a Project Suite with 5 Projects in it, maybe 150-200 tests in total.

I have implemented Performance Counters against localhost in my 5 test projects for the following:

  • % CPU
  • % Memory
  • Memory (MB)
  • % Disk Time
  • % Processor Time (TestComplete)
  • % Processor Time (TestCompleteService14)

Most of the time performance counters work fine, but occasionally near the start of some of my tests I get a warning
Error occured while trying to get value for counter % CPU [localhost]. Disable counter.

I get one of these for every counter.

What's going on here? How do I stop this happening? (Also there's a typo in TestComplete's warning, it should say "occurred" not "occured")

counter_warning.png


--------------------
Senior SQA Automation Engineer
7 REPLIES 7
Marsha_R
Champion Level 2

Are these results always on the same machine or possibly on different ones?  If it's different ones, you may need to check your setup for performance counters.

https://support.smartbear.com/testcomplete/docs/testing-with/advanced/monitoring-performance/configu...

 

 

tphillips
Frequent Contributor

The results are on the same machine, within the same test run. Maybe around 5 out of the 150 or so tests will have this warning, but it will all be in the same project suite run. Clearly the configuration is fine, if most of the time the performance counters work within the same project suite.

 

I will try re-installing TestComplete and cleaning up the machine it's running on, but I don't expect much improvement.

 

It would be useful if in the Details tab it told me what the error was.


--------------------
Senior SQA Automation Engineer


@tphillips wrote:

The results are on the same machine, within the same test run. Maybe around 5 out of the 150 or so tests will have this warning, but it will all be in the same project suite run. Clearly the configuration is fine, if most of the time the performance counters work within the same project suite.

 


Yeah but I have to ask because many people forget to tell us that they are running on 10 different machines with 6 different configurations and nobody bothered to check all of them.  Glad that wasn't you!  🙂

 


@tphillips wrote:

 

I will try re-installing TestComplete and cleaning up the machine it's running on, but I don't expect much improvement.

 


That's what I would do too, just to see.  

 


@tphillips wrote:

 

It would be useful if in the Details tab it told me what the error was.


If the reinstall doesn't help, I would talk to Support directly about this and also ask them why the Details aren't there.  Here's their link.

https://support.smartbear.com/message/?prod=TestComplete

sonya_m
SmartBear Alumni (Retired)

Marsha, thank you! Your help is appreciated.

 

@tphillips Did the reinstall help improve the situation?


Sonya Mihaljova
Community and Education Specialist

tphillips
Frequent Contributor

No luck. I have created a support ticket.


--------------------
Senior SQA Automation Engineer
sonya_m
SmartBear Alumni (Retired)

Looks like I found the support ticket - 00455396. Please keep the investigation going there and we'll be happy if you post the final solution to the Community too so that other community members could find it. Thank you. 


Sonya Mihaljova
Community and Education Specialist

Hi all!

Did you manage to find a solution?
Unfortunately I'm facing the same issue.

Best regards,
Galina

cancel
Showing results for 
Search instead for 
Did you mean: