473,419 Members | 1,702 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,419 software developers and data experts.

Maximum connections to http server

By default, the machine.config contains following information:

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

This limits the number of connections to web server to 2. For example, if
you want to write code to post xml to a web server using HttpWebRequest
object, the call to GetResponse() will be blocked except for first 2
threads. All other threads will enter GetResponse method as previous threads
are done.

Tthe msdn documentation says that if you want increase this number for any
http server, you need to modify this configuration in either machine.config
or app confic or policy config file as below:

<system.net>
.......
<connectionManagement>
<add address="www.abc.com" maxconnection="15"/>
</connectionManagement>
</system.net>

I have a web application that is deployed on internal web server. So I
modified it as following:

<system.net>
.......
<connectionManagement>
<add address="mymachine" maxconnection="15"/>
</connectionManagement>
</system.net>

This did not work at all. I also tried the machine in active directory
network name mymachine.ab.cde. It did not work either.

But when I modified as below, it worked:

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

But I do not want to apply this for every server. So can someone tell what
am I doing wrong?

Thanks.
Raghu/..
Nov 17 '05 #1
3 12198
Hi Raghu,

Have you tried using the IP address instead of name?
--
Ray Dixon - Microsoft MVP
ra*@NOSPAM.greeble.com
(remove NOSPAM. from my e-mail address for a direct reply)
"Raghu Rudra" <Ra*********@qcsi.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
By default, the machine.config contains following information:

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

This limits the number of connections to web server to 2. For example, if
you want to write code to post xml to a web server using HttpWebRequest
object, the call to GetResponse() will be blocked except for first 2
threads. All other threads will enter GetResponse method as previous threads are done.

Tthe msdn documentation says that if you want increase this number for any
http server, you need to modify this configuration in either machine.config or app confic or policy config file as below:

<system.net>
.......
<connectionManagement>
<add address="www.abc.com" maxconnection="15"/>
</connectionManagement>
</system.net>

I have a web application that is deployed on internal web server. So I
modified it as following:

<system.net>
.......
<connectionManagement>
<add address="mymachine" maxconnection="15"/>
</connectionManagement>
</system.net>

This did not work at all. I also tried the machine in active directory
network name mymachine.ab.cde. It did not work either.

But when I modified as below, it worked:

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

But I do not want to apply this for every server. So can someone tell what
am I doing wrong?

Thanks.
Raghu/..

Nov 17 '05 #2
I did not the first time. Now I did. It is still not working the it is
supposed to.

"Ray Dixon [MVP]" <ra*@NOSPAM.greeble.com> wrote in message
news:e3*************@TK2MSFTNGP12.phx.gbl...
Hi Raghu,

Have you tried using the IP address instead of name?
--
Ray Dixon - Microsoft MVP
ra*@NOSPAM.greeble.com
(remove NOSPAM. from my e-mail address for a direct reply)
"Raghu Rudra" <Ra*********@qcsi.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
By default, the machine.config contains following information:

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

This limits the number of connections to web server to 2. For example, if you want to write code to post xml to a web server using HttpWebRequest
object, the call to GetResponse() will be blocked except for first 2
threads. All other threads will enter GetResponse method as previous

threads
are done.

Tthe msdn documentation says that if you want increase this number for any http server, you need to modify this configuration in either

machine.config
or app confic or policy config file as below:

<system.net>
.......
<connectionManagement>
<add address="www.abc.com" maxconnection="15"/>
</connectionManagement>
</system.net>

I have a web application that is deployed on internal web server. So I
modified it as following:

<system.net>
.......
<connectionManagement>
<add address="mymachine" maxconnection="15"/>
</connectionManagement>
</system.net>

This did not work at all. I also tried the machine in active directory
network name mymachine.ab.cde. It did not work either.

But when I modified as below, it worked:

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

But I do not want to apply this for every server. So can someone tell what am I doing wrong?

Thanks.
Raghu/..


Nov 17 '05 #3
It depends on what your platform is.
Windows XP and Windows 2000 professional have a hard coded limited of
10 "simultaneous" connections because they are not "Server" OS's. This
is usually sufficient for development purposes but not for production
servers and/ or load testing.
I "think" that the setting you are referring to in machine.config
refers to the number of connections per request. Like when you hit a
webpage and it begins downloading images for that page.. it can use up
to two connections by default to download these to the client. Someone
can correct me if I'm wrong.

Darren Mombourquette

"Raghu Rudra" <Ra*********@qcsi.com> wrote in message news:<u8**************@TK2MSFTNGP12.phx.gbl>...
I did not the first time. Now I did. It is still not working the it is
supposed to.

"Ray Dixon [MVP]" <ra*@NOSPAM.greeble.com> wrote in message
news:e3*************@TK2MSFTNGP12.phx.gbl...
Hi Raghu,

Have you tried using the IP address instead of name?
--
Ray Dixon - Microsoft MVP
ra*@NOSPAM.greeble.com
(remove NOSPAM. from my e-mail address for a direct reply)
"Raghu Rudra" <Ra*********@qcsi.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
By default, the machine.config contains following information:

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

This limits the number of connections to web server to 2. For example, if you want to write code to post xml to a web server using HttpWebRequest
object, the call to GetResponse() will be blocked except for first 2
threads. All other threads will enter GetResponse method as previous threads are done.

Tthe msdn documentation says that if you want increase this number for any http server, you need to modify this configuration in either machine.config or app confic or policy config file as below:

<system.net>
.......
<connectionManagement>
<add address="www.abc.com" maxconnection="15"/>
</connectionManagement>
</system.net>

I have a web application that is deployed on internal web server. So I
modified it as following:

<system.net>
.......
<connectionManagement>
<add address="mymachine" maxconnection="15"/>
</connectionManagement>
</system.net>

This did not work at all. I also tried the machine in active directory
network name mymachine.ab.cde. It did not work either.

But when I modified as below, it worked:

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

But I do not want to apply this for every server. So can someone tell what am I doing wrong?

Thanks.
Raghu/..


Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: daniel.shaya | last post by:
I'll try and keep this brief so in a nutshell: I have large distributed java system running on a Windows 2003 server (4cpu 8Gb memory). Periodically the following exceptions occurs in the...
3
by: mike | last post by:
regards: How do I know that edition 1.0 or 1.1 the HTTP Server support?..... Support of HTTP edition is decided by client end or server end? Any positive suggestion is welcome. thank you May...
14
by: jojoba | last post by:
Hi, I hope this post is ok for this group. Here's my deal: I have two computers on my LAN at home. One desktop. One laptop. Both computers are wireless enabled (and wired enabled too). I...
2
by: lucifer | last post by:
hi i am making an http server it has following functions main() { if option is "-?", output the hints and stop check the directory supplied is sensible and not a security risk become a daemon...
6
by: placid | last post by:
Hi all, Ive been reading about creating a HTTP server like the one pydoc creates (and studying pydoc source code). What i want to know, is it possible to create server that creates a webpage...
0
by: kokababu | last post by:
Hi, I have apache http server A and two other machine B and C. B is the production server and C is the test server. Http server A is in separate machine. Now, users will send request via Http...
0
by: Michael Justin | last post by:
Dear Newsgroup After many searches and tests I have not found a way to use a HTTPWebrequest from inside an XBAP (WBF browser application) to connect with the same HTTP server where it is hosted....
1
by: rs387 | last post by:
Hi All I've encountered a weird issue when migrating a web server to Python 3 - the browser would wait forever without showing a page, displaying "Transferring data" in the status bar. I tracked...
2
by: Ollie Shotton | last post by:
Hi i need to make a BASIC HTTP server for a project using JUST TCP/IP Sockets so please don't suggest anything that would use some of C#'s higher level networking components, Thanks =). Anyway my...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.