Darryl Pentz wrote:
Hi all,

Apologies for bumping this one - I was sure somebody would be able to respond 
to this. We're seeing some really poor performance on some of our higher load 
servers, but the problem is that to run profilers on them when they're under 
load is just not feasible. So I'd like to know whether if ~800 concurrent 
connections were pinging, would the below configuration be limited to the pool 
of 16 AnonymousIoService objects and would this result in pegging the CPU 
really high? Should I be switching to the manual threading model as per my 
second post on this thread?

Very difficult to say.

You have to understand that it all depends on the way you process messages in the codec and in the handler. MINA does not eat a lot of CPU itself.

The number of thread you need to setup is impossible to define without any knowledge about your code.

For instance, if you access a database in the handler, it's pretty obvious that the thread might be stuck for a few ms, and with 800 concurrent requests running, you will get awfull performances. At this point, it's all about decoupling the code run in handler from the MINA stack, using Executors.

--
--
cordialement, regards,
Emmanuel Lécharny
www.iktek.com
directory.apache.org


Reply via email to