Re: service soemtime will get slower -- what to watch





"Ignacio Machin ( .NET/ C# MVP )" <machin TA laceupsolutions.com> 写入消息 news:uHU6FuVSIHA.5208@xxxxxxxxxxxxxxxxxxxxxxx
Hi,

How many open connections there are?
I bet that after a couple of days you have a BIG number of connections open and that is the problem you are seeing.

Can you use a poll method instead? The client connect to the server in regular intervals and send/receive messages?
What about using UDP?
IIRC all the IM systems use UDP for this same reason

--
Ignacio Machin
http://www.laceupsolutions.com
Mobile & warehouse Solutions.



Machin,

Not just client initiative the conversation, sometime the srever will actively send data to client,and then client response as well.

And the conversation between client and server has to be "real time". I am afraid poll mechanism is not handling it quick enough.

And I heard UDP is not as reliable as TCP. Maybe LAN enviorment is not a problem. Also I use "statefull connectoin" to make my programming easy.

All clients will disconnect from the server at the end of day.

Thanks,
Ryan


"Ryan Liu" <rliu@xxxxxxxxxxxxx> wrote in message
news:Oz3tQ1PSIHA.5976@xxxxxxxxxxxxxxxxxxxxxxx

"Ignacio Machin ( .NET/ C# MVP )" <machin TA laceupsolutions.com> 写入消息 news:%23g%23KERMSIHA.5360@xxxxxxxxxxxxxxxxxxxxxxx
Hi,



"Ryan Liu" <rliu@xxxxxxxxxxxxx> wrote in message news:OoKqNhJSIHA.5164@xxxxxxxxxxxxxxxxxxxxxxx
Hi,

I use C# wrote an Client/Server application. In production environment, will be 130 clients (Windows XP) connect to a Server (Windows 2000/2003 Server) thought TCP/IP socket in a local 100M LAN. "Server" is running as a Windows service. The is one thread running for one clinet in the server.

How you know how many clients are running at a given time?
Do you close your connections after you transfer data?

Sometime the user tells me the Sever will be slow after it runs for 1-2 days.

It sound like you are not closing the connections. Do a netstat -an and see how many open connections you have.



The connectoins will be closed probably at the end of day, when all the
operators go home. Otherwise, yes, they remain open since operators are
continously work on it. I am using a statefull connection.

Thanks,


--
Ignacio Machin
http://www.laceupsolutions.com
Mobile & warehouse Solutions.





.



Relevant Pages

  • Re: Network intermittently dropping the connection to shared files on server
    ... what we were using with our SBS2000 server with no problems. ... It's a small Server plus 4 Client W/S set up in one office. ... All users that have current connections to the shared files are ... We have a small network < 5 clients connected to a new Dell ...
    (microsoft.public.windows.server.sbs)
  • Re: TCP server stop receiving new connections
    ... reset the event mask of your listening socket each time you ... I have a strange problem in my class library used by all our client ... server applications. ... incomming connections, but keeps current connections. ...
    (microsoft.public.win32.programmer.networks)
  • Re: RTC remoting > Explained in 11 minutes
    ... transport components for connections between clients and servers. ... server response but also server request (to client) -> client response) ... handed off to the different attached plugin command handlers which have ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: Network intermittently dropping the connection to shared files on server
    ... ISA Server detected routes through adapter Loopback that do not correlate ... It's a small Server plus 4 Client W/S set up in one office. ... All users that have current connections to the shared files are ... We have a small network < 5 clients connected to a new Dell ...
    (microsoft.public.windows.server.sbs)
  • Re: More Than One VPN from Home?
    ... What about an application server at the office that the remote users ... situation I need to use it, the broadband connections at the servers location ... bit of client traffic using the DSL bandwidth at the SBS location, ...
    (microsoft.public.windows.server.sbs)