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