Re: service soemtime will get slower -- what to watch
- From: "Ryan Liu" <rliu@xxxxxxxxxxxxx>
- Date: Sun, 30 Dec 2007 16:23:42 +0800
"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@xxxxxxxxxxxxxxxxxxxxxxxHi,
"Ryan Liu" <rliu@xxxxxxxxxxxxx> wrote in message news:OoKqNhJSIHA.5164@xxxxxxxxxxxxxxxxxxxxxxxHi,
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: Ignacio Machin \( .NET/ C# MVP \)
- 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
- Re: service soemtime will get slower -- what to watch
- From: Ignacio Machin \( .NET/ C# MVP \)
- service soemtime will get slower -- what to watch
- Prev by Date: Add a Hashtable to Applicatoin to save Global data
- Next by Date: Re: Add a Hashtable to Applicatoin to save Global data
- 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
|