Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I do load/stress testing of wcf services hosted in a windows service?

We have around 15 wcf services hosted in windows service. Some of the are in .NET 4.0 and some in .NET 3.5.

I would like to know how to perform load/stress/performance testing of wcf services hosted in windows service. The client uses .net tcp binding to communicate with the services. Also, most of the API's return a stream for performance's sake.

I was able to find some tools for wcf service testing hosted in IIS but dont know a way to do load/stress/performance testing for services hosted in window service.

Any help is appreciated. Thank you.

like image 470
Everything Matters Avatar asked Nov 22 '11 14:11

Everything Matters


3 Answers

You can refer the simple steps from here for load and performance testing of WCF service

like image 78
Sandeep Kumar Avatar answered Oct 13 '22 19:10

Sandeep Kumar


What about 6 Different Ways to Testing a Web Service?

Here a quick how-to to implement WS testing using jmeter.

And look into these 2 posts - they seem relate to your problem:
1. WCF with tcp.net binding testing with JMeter
2. How to test a WCF Webservice with JMeter?

like image 26
Aliaksandr Belik Avatar answered Oct 13 '22 19:10

Aliaksandr Belik


You should be able test using Visual Studio 2010 Ultimate edition. The basic process is to simulate http requests.

The easiest way I can image would be to create an app to call the web service you want to test in a pattern similar to that way you expect normal applications to call it. Use Fiddler2 to record the https session. Save the session as a visual studio web test. Load the webtest into Visual Studio and convert it to a coded web test. This allows you to control the security etc that is uses against the web service.

Visual Studio 2010 Ultimate edition is required to run the load tests, but webtests are creatable with normal editions. Really hard out testing also requires a licence for the virtual user packs, but the Ultimate edition allows testing up to 250 virtual users with a single CPU. This is enough to get a good idea of the performance profile of the webservice.

like image 1
Nat Avatar answered Oct 13 '22 19:10

Nat