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 743143
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T08:49:43+00:00 2026-05-14T08:49:43+00:00

I have a wcf service deployed on IIS with basicHttpBinding and aspNetCompatibilityEnabled=true I have

  • 0

I have a wcf service deployed on IIS with basicHttpBinding and aspNetCompatibilityEnabled=true

I have a test client as well which invokes multiple service functions simultaneously. To check the performance of service call on client and server I calculated the Avg time it takes to complete a service request on client(in proxy code) and on server as well.

after a test of 8 hrs (server and client were on the same machine) i came to know that average response time on client is around 34ms where as the Avg execution time on server is around 3ms so the difference is 31ms.

I would like to know why every call is taking 31ms is it justified? and how can i reduce this?

EDIT: After Answer Post by “Marc Gravell”

  1. SSL Enabled within IIS no other security on WCF level
  2. Service perform minor database operation you can estimate operation cost by given 3ms average execution time. (if this is what you call payload)
  3. There is no Blob, no MTOM
  4. Send and Receive Messages are not big may be around 100 byte to 500 byte, Simple Message Contracts
  5. Please let me know if anything else required to diagnose this
  6. Actually i am more concerned about the cost of TCP Connection establishment if you can explain how WCF does the TCP connection job and if there is any difference in it against different bindings available
  • 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-14T08:49:44+00:00Added an answer on May 14, 2026 at 8:49 am

    After a long research and test executions i came to the conclusion that it is happening due to the Thread Invocation time on server, As WCF uses I/O completion Ports(an efficient threading model. Detail here)

    and you need to set the minimum concurrency requirements in the start of your server that may be done like follows

    ThreadPool.SetMinThreads(100, 100);
    

    Otherwise you will be suffer due to the default values of pool minimum size that is 2,2 and any new thread will require a cost of creation of thread (that every developer knows that is most costly process). By doing above Threadpool will maintain the at-least 100 thread ready to work and your service will rock.

    As i have reduce the the waisted 31ms to 6ms.

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

Sidebar

Related Questions

I have a WCF service deployed to IIS 7 and the client. I thought
i have deployed my wcf service on IIS.. Its giving me this error when
I have a WCF service deployed in a console app with BasicHTTPBinding and SSL
I have created a wcf service which is deployed via a managed windows service.
I have a WCF service which works perfectly when deployed in our dev and
I have a WCF service deployed to IIS 6. This service calls another web
I have a WCF Service deployed in azure. I have a client consuming this
Background: I have a WCF service deployed on my local machine that in turns
I have a WCF service that is deployed on a machine. This WCF service
So I have a WCF service that seems to work perfectly in a deployed

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.