WCF service behaves differently when called from localhost, why?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hello

I have running WCF service (config below) hosting in just console
application - because I've used InstanceContextMode.Single and
ConcurrencyMode.Multiple and no Throttling I expect that 10 simultaneous
requests will create 10 threads. Indeed it's true when calling service from
the same machine - from localhost.

However making remote call to exactly the same instance of service will
cause ServiceHost to give _only_ 2 threads to process requests; so in one
time only two threads is working and 8 requests are waiting.

I haven't found how to distinguish configuration wheter it's remote or not.

My service just sleeps for several seconds, framework 3.5B2, Vista 64, Intel
2 Duo

<system.serviceModel>
<services>
<service behaviorConfiguration="myBehConfig"
name="MySampleService.MySampleServiceImp">
<endpoint address="http://localhost:6001/MyService";
behaviorConfiguration=""
binding="basicHttpBinding"
name="HttpEndpoint"
contract="MySampleService.MySampleContract1"
/>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="myBehConfig">
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>


Thanks for any information.
.



Relevant Pages

  • Re: gnump3d port problem
    ... i'd suggest backing up your config file and purging the package. ... requests upon ... Perhaps the port ... you work on your computer when you want to turn your brain on" -- ...
    (Ubuntu)
  • Re: WCF service behaves differently when called from localhost, why?
    ... the client proxy is determining that the request is from the local client ... see only two requests processed at the same time. ... However making remote call to exactly the same instance of service will ... I haven't found how to distinguish configuration wheter it's remote or ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: 400 - Bad requests under II6
    ... It is a basic PHP based site with a few virtual dir under it. ... > instance's config and got same thing... ... Feel like a true dummy ...
    (microsoft.public.inetserver.iis)
  • Re: Kernel warning about CPU frequency
    ... termperature triggered clock throttling feature. ... Looking at the config of a FC3test kernel I see: ...
    (Fedora)
  • IIS6 Application Pool : How to get cuurent # of requests
    ... We can config "Request Queue Length" for application pool in IIS6. ... If I want to check if current requests exceed this configed length, ...
    (microsoft.public.inetserver.iis)