Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Sep : Re: TServerSocket question.. please help:(

www.cryer.info
Managed Newsgroup Archive

Re: TServerSocket question.. please help:(

Subject:Re: TServerSocket question.. please help:(
Posted by:"Old Fan" (dont@even.try.invalid)
Date:Thu, 27 Sep 2007 21:20:45

On 2007-09-27,   N.Erim  (193.192.99.2)  wrote in
message <46fbb6c0@newsgroups.borland.com>


> Hi,
>
> I am using TServerSocket (Delphi) and when it works with connecttions
> approximatelyt 200 , I think application makes windows slow or socket traffic
> slow..
>
> I can understand this slowness with this steps;
>
> I am connecting Server PC with RemoteDesktop, At past, I was using PC
> Anywhere to Connect PC  but it is very slow,
>
> First I start application and All Clients connects to Server, and I do not
> close sockets for 20 minutes (Thread idle wait time)
> Then I close remote desktop connection without logging of
> Then I wait for 2 days  and When I Try to open Remote desktop to connect to
> pc and to check server application, it waits very long to connect to pc
> When it is connected to pc, I close the server application and againg start
> application.. So than, I can connect with Remote Desktop fast..
>
> What the problem can be??  I am so sad about this..  Why My server
> application makes PC network slow???

Hi,


If the server application works OK in the beginning, but begins to slow
down after some time, then you almost certainly have a memory leak
somewhere.
Much depends on what those 200 clients are doing; do they connect, send
some data, receive some data and disconnect? Or do they stay connected
for longer periods of time? When a client disconnects, do you close the
associated socket properly?

If 200 clients simultaneously are sending more data then the server can
handle, all those data will queue up in the servers socket buffers and
consume all memory and/or memory handles.

You can easily check what happens: on the server, configure Taskmanager
to show the VM-size and the handles used by each process.
Check what happens periodically...

HTH..

Replies:

none

In response to:

www.cryer.info
Managed Newsgroup Archive