Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3360142
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T02:57:25+00:00 2026-05-18T02:57:25+00:00

I am trying to simulate X number of concurrent requests for a WCF Service

  • 0

I am trying to simulate X number of concurrent requests for a WCF Service and measure the response time for each request. I want to have all the requests hit the Service at more or less the same time.

As the first step I spawned X number of Threads, using the Thread class, and have invoked the Start method. To synchronize all the requests, on the Thread callback I open the connection and have a Monitor.Wait to hold the request from being fired, till all the Threads are created and started. Once all the Threads are started, I call Monitor.PulseAll to trigger the method invocation on the WCF Client Proxy.

When I execute the requests this way, I see a huge delay in the response. A request that should just a few milliseconds, is taking about a second.

I also noticed huge lag between the time the request is dispatched and the time it was received at the service method. I measured this by send sending client time stamp as a parameter value to the service method for each request.

I have the following settings. Assume “X” to the Concurrent number of requests I want to fire. Also note with the following settings I don’t get any Denial of Service issues.

  1. The Call chain is as follows,Client->Service1->Service2->Service3
  2. All Services are PerCall with Concurrency set to Multiple.
  3. Throttling set to X Concurrent calls, X Concurrent Instances.
  4. MaxConnections, ListenBacklog on the Service to X.
  5. Min/Max Threads of ThreadPool set to X on both Client and Server (I have applied the patch provided by Microsoft).

Am not sure if the response time I’m measuring is accurate. Am I missing something very trivial?

Any inputs on this would be of great help.

Thanks.

-Krishnan

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T02:57:26+00:00Added an answer on May 18, 2026 at 2:57 am

    I did find the answer by myself the hard way. All this while, the way I was measuring the response time was wrong. One should spawn X number of threads, where X is the number of concurrent users one wants to simulate. In each thread, open the connection only once and have while loop to only execute the WCF Method that you want to test for a given duration. Measure the response time against each return, accumulate it and average it out against the number of calls that were executed within the given duration.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a 32GB memory machine and I want to simulate trying out one
I have made some PHP scripts and I want to test the response time
I'm currently trying to simulate holding a key down for a specified time. The
I am trying to simulate HTTP requests in Java with the URL class and
I want to simulate values that represent a geometric distribution. The plot I have
i am trying to simulate the pressing of the TAB key. I have search
I am trying to simulate a distributed algorithm by putting each process (class) to
I have a web service I'm trying to load test. I created a program
I am trying to simulate a scenario where connection to the server of one
I am trying to simulate linux command ls using linux api from c. Looking

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.