-
November 4th, 2004, 02:20 AM
#1
-
November 4th, 2004, 02:29 AM
#2
Re: Winsock TCP/IP Connection Limit...pls help
-
November 4th, 2004, 02:37 AM
#3
Re: Winsock TCP/IP Connection Limit...pls help
Hi Andreas,
Why was i moved?? and to where???
Regards
Mustafa
______________________________
To err is human, it's the computer that causes blunders !!!
DO: Dazzle me with your intelligence
DON'T : Confuse me with your bullshit
-
November 4th, 2004, 02:52 AM
#4
Re: Winsock TCP/IP Connection Limit...pls help
I moved it to the network programming forum to increase your chances to get the answers you are seeking for...
-
November 4th, 2004, 03:00 AM
#5
Re: Winsock TCP/IP Connection Limit...pls help
Dear Andreas,
I see ....thanks....
Mustafa
______________________________
To err is human, it's the computer that causes blunders !!!
DO: Dazzle me with your intelligence
DON'T : Confuse me with your bullshit
-
November 5th, 2004, 03:03 AM
#6
Really need help...anybody pls
______________________________
To err is human, it's the computer that causes blunders !!!
DO: Dazzle me with your intelligence
DON'T : Confuse me with your bullshit
-
November 19th, 2004, 12:48 AM
#7
Re: Winsock TCP/IP Connection Limit...pls help
A little late...but still I think it might be helpful.
Your question doesn't have a direct answer, because the connection limit depends on many factors. Most important factor is the RAM. For every connection your connected idle socket uses about 2K of Non paged pool memory. If your socket is busy, then it consumes more NP memory. That means the part of physical memory that cannot be paged out to the disk. The NP page is limited in all the OS and the limitations vary. In NT/2000 it is approx. 1/4th the total amount of physical RAM. This is the theory part, but in practice, you may get more that that. Also remember there are many programs that uses NP memory(like drivers), so you won't get all the NP memory. Anyway if you are aiming for handling high connection, it won't be any good if you are using MFC wrapper socket. The best is to use IOCP with overlapped AcceptEx...which needs some studying and searching and research(a bit complex).
Either way, it is bad for you server if the system goes low on resource/NP memory. Some other driver may get into a fix due to low NP memory and could cause the whole OS to crash. So the best way is to test in the server on the site with different simulated load/connection and set a limit. Your server should also monitor the no of overlapped IO.
BTW on tests I got more than 100,000 connections on P4 with 512MB RAM, OS W2K with more that 3000 connections per sec using AcceptEx. But in reality, for such a server depending on other factors I'll restrict the no of connections to < 50,000.
Even if our suggestions didn't help, please post the answer once you find it. We took the effort to help you, please return it to others.
* While posting code sections please use CODE tags
* Please check the codeguru FAQ and do a little search to see if your question have been answered before.
* Like a post, Rate The Post
* I blog: Network programming, Bible
I do all things thru CHRIST who strengthens me
-
November 20th, 2004, 01:10 AM
#8
Re: Winsock TCP/IP Connection Limit...pls help
Hi Mathew,
Thanks for responding and thanks for the info but I think I have read that somewhere...but my puzzle is...how come given a bigger/faster machine on the WAN could only connect a much lesser connections than the one on the LAN...which I consider a lesser machine..in terms of memory,CPU etc....
Had been looking at registry settings...and been comparing between the two machines....and it is still is a mystery for me...
Still need help...
Regards
Mustafa
______________________________
To err is human, it's the computer that causes blunders !!!
DO: Dazzle me with your intelligence
DON'T : Confuse me with your bullshit
-
November 24th, 2004, 11:45 AM
#9
Re: Winsock TCP/IP Connection Limit...pls help
As I said in my previous post it basically depends on the amount of NP memory you are having. Your bigger machine might have more number of programs that utilise more amount of NP memory. Hence you application is left with little. The amount of NP memory is not dependent on any registry settings.
Again as I said previously, if you are looking for higher number/performace, you have to do away with the MFC wrapper class. AcceptEx() with overlapped IO gives the best performance in terms of accepting connections.
Other than the above mentioned, I am not aware of anyother things that may decrease performance.
Even if our suggestions didn't help, please post the answer once you find it. We took the effort to help you, please return it to others.
* While posting code sections please use CODE tags
* Please check the codeguru FAQ and do a little search to see if your question have been answered before.
* Like a post, Rate The Post
* I blog: Network programming, Bible
I do all things thru CHRIST who strengthens me
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|