Hello,
 
The docs say to pass in the number of IO processors you want, and suggest
the number of processors +1 as a good place to start. The docs also say that
you should always use a CachedThreadPool as the executor, which is an
unbounded pool by default:
 
        //  create an acceptor with 3 IO processor threads (on a dual core)
        IoAcceptor acceptor = new
SocketAcceptor(Runtime.getRuntime().availableProcessors() + 1,
                Executors.newCachedThreadPool());
        
        // configure the thread models
        IoServiceConfig acceptorConfig = acceptor.getDefaultConfig();
        acceptorConfig.setThreadModel(ThreadModel.MANUAL);
        
Will mina spawn more than 3 IoProcessors threads from the
Executors.newCachedThreadPool()for a dual core server given this example? Or
is the threadpool passed in used for another stage when the IoProcessor is
done, and is indeed ubounded? If it will spawn more threads from the pool,
then what is the limit on I/O processors mean? 
 
Thanks for clarifying this!
--brigham

Reply via email to