• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 906
  • Last Modified:

maxconnection for .NET applications

i have a potential problem with a .NET (2.0) web application that calls a web service on another server. the call can be spawned by every client page request, and i have encountered a "deadlock" error in the event log a few times, MS recommended increasing the value of "maxconnection" for such applications.

i was browsing a question about where can you change the value of "maxconnection" parameter, and the answer was to do in machine.config, using this section:


<system.net>
  <connectionManagement>
   <add address="*" maxconnection="10"/>
  </connectionManagement>
 </system.net>

my questions regarding that:

1) does it have to be in machine.config? can I create it for one specific app, using its web.config?

2) how do i  know (programmaticaly) that .NET is actually using the value i set?

3) MS declares that you can add multiple maxconnection, example:
   <add address="*" maxconnection="2"/>
   <add address="http://10.0.0.0" maxconnection="12"/>

in this case would there be a way for me to know that .NET is actually using the value i set for that specific address?


0
structuredweb
Asked:
structuredweb
1 Solution
 
strickddCommented:
Yes, web.configs are inherited from the highest level down to the current level. The precedence starts in the machine.config and the machine's web.config then to the website's root web.config and finally the web.config if the folder your code it running in. This means if you set it in a web.config for the website it will only affect that website.

As far as testing and verifying, that would probably take some network sniffing tools. You may also want to consider setting the value to 0 or 1 and load testing and compare that to a load test of the value being 100. That should give you an idea when you see the response times. Other than that, trust in microsoft.

To test which address you're pointing at, you can record incoming connections to the address you specify.
0
 
structuredwebAuthor Commented:
no specific answer to a programatic interface, but maybe there isn't ..
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now