[prev in list] [next in list] [prev in thread] [next in thread]
List: mina-dev
Subject: Re: How to detect the client disconnection
From: "James Im" <im-james () hotmail ! com>
Date: 2007-02-26 7:30:13
Message-ID: BAY7-F1431D7434B97A6CFF9A3B96830 () phx ! gbl
[Download RAW message or body]
>>3) I am just newbie about the newworking programming. So can you point out
>>the way to measure CPU time for the I/O wait? What you said if my server
>>side bandwidth is small, the situation I discribe could happen?
>
>If you write faster than what your network can acceptor, MINA will store
>your write requests in an internal queue. If there are too many queued
>requests, you will get OutOfMemoryError. You need to control the write
>throughput by yourself using methods such as
>IoSession.getQueuedWriteReqeusts().
it would be nice if the framework could provide a solution for this.
>>4) How can I prevent the client open millions of socket connection to my
>>server and try to crash my server?
>
>First, you need to be able to detect if the server is overloaded. Once
>detected, you can close any incoming connection or limit the number of
>incoming messages by controlling the traffic of each session.
Doesn't a solution already exists for this?
_________________________________________________________________
Log på MSN Messenger direkte på nettet: http://webmessenger.msn.com
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic