Link to home
Start Free TrialLog in
Avatar of kahvedzic
kahvedzicFlag for Bosnia and Herzegovina

asked on

MaxOutboundConnectionsPerEndpoint quota (10) has been reached, so the connection was closed and not reused by the listener

Hi all!

We have strange issue with WCF services hosted on IIS7.
Services are using net.tcp bindings, with port sharing enabled.
There are 8 different services in total, and some of them have large number of calls simultaneously and some have long running queries that return large number of rows (1+ length, which I cant reduce in any way, due to business requirements).

After period of time when services were working perfectly fine, some strange things started to happen, such as getting error - MaxOutboundConnectionsPerEndpoint quota (10) limit reached. Although I have set this value(s) to 50 in web config file, we still get the same error.
Occasionally we have serious slowdowns on service response, although server is not under stress at all, and somehow those match in times with occurrence of the error.

Please do you have any ideas or recommendations (what or at least, where to look).

Thank you in advance!
'Config code

 <net.tcp listenBacklog="100"
          maxPendingAccepts="100"
          maxPendingConnections="1000"
          receiveTimeout="00:00:10"
          teredoEnabled="false"
          maxOutboundConnectionsPerEndpoint="50"
          maxConnections ="250">
    </net.tcp>

Open in new window

Avatar of graye
graye
Flag of United States of America image

I presume this is running on a true "server" version of WIndows... and not on a workstation version of Windows?   Recall that workstation versions have a upper limit on the number in inbound connections.
Avatar of kahvedzic

ASKER

@Graye
Yes, services are running on Windows Server 2008 R2, IIS7.

ASKER CERTIFIED SOLUTION
Avatar of kahvedzic
kahvedzic
Flag of Bosnia and Herzegovina image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I have changed properties, tested it on our system and it works perfectly fine right now.