Unable to get performance counters from specific servers when running load tests

I am running load tests using the embedded system in Visual Studio 2010. The setup is a test controller with four agents. The tests I run will load the application server and the database server. The problem I am facing is that I cannot get values ​​from the performance counters on the application server and the database server. I followed the instructions http://msdn.microsoft.com/en-us/library/ms404661%28v=vs.100%29.aspx and http://blogs.catapultsystems.com/tlingenfelder/archive/2009/06/18 /performance-counters-timeouts-and-load-testing-with-visual-studio-2008.aspx for troubleshooting, but to no avail.

Using Performance Monitor (perfmon) I can connect to and get values ​​from performance counters on an application server and database tested from multiple computers. But when running load tests, I get nothing.

I am trying to get the system performance counters like CPU and Memory usage, so there are no special counters.

Any hints as to what I will do next?

+3


source to share


2 answers


The main problem was that I was not aware of this, in order to get performance data from the computer during load testing, a test agent (or controller) must be installed on it.

  • Install test agents and register them with the controller on all machines used for load testing (for me, the application server and the database, they did not have test agents installed)
  • In your current load test in Visual Studio, remove the application server and database from the counter sets.
  • Add them again
  • Run the test!


It looks like the old link to the application server and database in the load test is not working as expected, so you need to remove and add them again.

Voila! Performance counters are displayed and return values!

+1


source


I have the same problem too. The only solution I have found is to remove some of the counters in the counter sets and also increase the sampling interval (see here ).



Other things I have on my setup are Roles : the agents will run tests, but not collect data; this will be done by my webserver (test agent installed on it). Check out the link.

0


source







All Articles