Wednesday, March 25, 2009

Load Testing of SOA - Services

I've been searching for a method by which I can perform Load testing of the services of my application (SOA Based). I wrote few Unit tests which I used to run from the inbuilt Load Agent with VSTS 2008 and get the results.

I was searching for another way by which I can get the counters from the services itself. I figured out how that can be done.

In the app.config of the service we want to host, we can write the following

<diagnostics performanceCounters="All" />

This exposes all the performance counters from the service. There is a good article of this in MSDN

The counters can be viewed in the performance monitor of the machine hosting the service.
For opening this write perfmon.exe in Run

Create a new Log Setting for the required counters. And start the log setting before you perform the Load Test. You have to give a path to the output of the log as per requirement. I did with .blg file and it gives a pretty slick graphical representation of the data for all the counters selected in the profile.

No comments: