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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T00:40:38+00:00 2026-06-04T00:40:38+00:00

It seems this is a common question/problem but despite checking out a number of

  • 0

It seems this is a common question/problem but despite checking out a number of proposed solutions nothing worked for us so far.

The app

It’s a simple chat app, that puts a new interface on an existing app’s JSON library. We proxy all the calls to their app to avoid x-domain restrictions (IE8).
ASP.net MVC3 App;

It’s hosted in IIS6, W2K3 SP2. DEV svr has 1gig ram, TEST svr has 4gig ram.

The problem

When we approach 20 concurrent users, requests start lagging – no issues in Event Viewer to be found. It looks like calls are just queued. There are NO 503’s returned.

What we’ve tried

  • We’re using AsyncController to long-poll a 3rd party webservice for results
    Hosted in IIS6
  • We’re using the TPL to call their service in our AsyncController method
  • We’ve modified processModel and set maxWorkerThreads=100.
  • We’ve looked at this how-to but the HTTP.SYS config looks to service an infinite number of threads so we haven’t bothered adding the reg keys.
  • The 3rd party service can handle lots of concurrent requests (and is in a web farm, so we’re fairly confident we’re the weakest link)

what are we missing? – any help greatly appreciated

  • 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-06-04T00:40:40+00:00Added an answer on June 4, 2026 at 12:40 am

    Well… almost four weeks later and I thought I’d update this in case anyone wants to find out what helped us overcome these limitations (we’re cramming around 100 simul connections on our DEV server, 1gig Xeon).

    AsyncControllers

    • If you’ve got a potentially long waiting request (i.e. long polling) then use them.
    • Feel free to use TaskFactory but be sure to mark it as a long running process, if there is risk you could exception in your thread, be sure to use ContinueWith so you can decrement the operations, and return the error to your caller.

    ServicePointManager

    • If you’re making downstream calls (i.e. WebService/3rd party API) then make sure you have increased DefaultConnectionLimit from the default of 2 simultaneous connections.
    • A rough guide is 8 * Num cores so you don’t starve outgoing connection resources.
    • See this MSDN article on DefaultConnectionLimit for more info.

    IOCP vs RestSharp

    • I love RestSharp’s API, it’s fantastic but it’s probably meant more for client side programming, not for proxying requests. My mistake!! Use HttpWebRequest and the Begin/End methods to make use of IOCP
    • If you’re looking to reverse proxy or url rewrite, check out URL Rewriter, a great library available freely on CodePlex

    In the end, our issue wasn’t with incoming requests, it was with requests being proxied to a third party, we weren’t supplying enough connections and thus they all queued up lagging the whole system. Happy to say after lots of reading, investigation and coding we’ve resolved it.

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

Sidebar

Related Questions

This seems to be a common problem, but I cant seem to fin a
I know this has probably been answered as it seems a common question but
This seems like a pretty common problem, but I haven't found any sort of
This seems to be a more common problem, but when I try to use
This seems like a common question but search is not returning anything. I have
I think this seems to be a quite common question, but since I am
this seems a common problem, except I have had no trouble with this before
This seems like it would be a common issue to be but I don't
It seems this type of question has been asked and answered a number of
This is more a learning question than coding, but I'm certain it's a common

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.