First off, the latest releases uses somewhat different settings; the
default max number of I/O processors is the number of CPU cores + 1.

On 10/13/07, blazespinnaker <[EMAIL PROTECTED]> wrote:
>
> According to the help on http://mina.apache.org/configuring-thread-model.html
> it says that the default number is one.
>
> However, I always get 16.   I can't even figure out how to make it one
> thread.

Did you disable the ThreadModel?  If you disabled ThreadModel and
didn't add any ExecutorFilter, you should see minimal number of I/O
worker threads.

> Is that supposed to say it starts at one and grows to 16?

It starts at one and grows to the number of CPU cores + 1 by default,
as you con configure that.

> The suggest is to based it on the number of cores.   For the life of me,
> however, I can not make this work:
>
> IoAcceptor acceptor = new SocketAcceptor(4,
> Executors.newCachedThreadPool());
>
> Any examples I can look at?

If there's only one session to handle, the number of the I/O processor
threads doesn't increase at all because one thread is enough.  Please
try to generate more connections.

HTH,
Trustin
-- 
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP Key ID: 0x0255ECA6

Reply via email to