Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Feb : Re: Thread or connection count problem for win.2003 server
| Subject: | Re: Thread or connection count problem for win.2003 server |
| Posted by: | "Lucian" (thanks@no.spam) |
| Date: | 15 Feb 2007 07:44:52 |
> And I have tried to run only three program instead of six
> program.(2700 conections) And my three server programs have worked
> together very well. And theads count was 3200.
>
> Is there any restriction on win2003 server for thread or tcp
> connections count? Or indy version problem?
> What must I do?
The restriction is the computer memory. If you compiled your program
with default stack size (which is about 1MB) you would be able to run
about 2000 threads per application, because each thread will inherit
the stack size from the parent application. You can play with $M
directive and reduce stack size for your application, thus you'll
increase the number of threads your app can run. I was able to run
12000 threads in one application. How much you can decrease the stack
depends on your application and only testing will tell you how low can
you go. Good luck.
Lucian
none