Re: service soemtime will get slower -- what to watch
- From: "Ignacio Machin \( .NET/ C# MVP \)" <machin TA laceupsolutions.com>
- Date: Fri, 28 Dec 2007 09:11:14 -0500
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.
"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.
.
- Follow-Ups:
- Re: service soemtime will get slower -- what to watch
- From: Ryan Liu
- Re: service soemtime will get slower -- what to watch
- References:
- service soemtime will get slower -- what to watch
- From: Ryan Liu
- Re: service soemtime will get slower -- what to watch
- From: Ignacio Machin \( .NET/ C# MVP \)
- Re: service soemtime will get slower -- what to watch
- From: Ryan Liu
- service soemtime will get slower -- what to watch
- Prev by Date: Re: memcpy char* in C#
- Next by Date: Re: If not .Net then what?
- Previous by thread: Re: service soemtime will get slower -- what to watch
- Next by thread: Re: service soemtime will get slower -- what to watch
- Index(es):
Relevant Pages
|