Thanks. I will use other thread model and test it. -----邮件原件----- 发件人: mat [mailto:[EMAIL PROTECTED] 发送时间: 2007年10月22日 0:03 收件人: [email protected] 主题: Re: 答复: reply: mina performance
Executors.newCachedThreadPool() is always preferred by IoService. What I said was ExecutorFilter. On 10/21/07, Brian McCallister <[EMAIL PROTECTED]> wrote: > > > On Oct 19, 2007, at 9:23 PM, mat wrote: > > > Try to use FixedThreadPool instead of CachedThreadPool when add a > > ExecutorFilter. > > This goes against the advice at > http://mina.apache.org/configuring-thread-model.html > : > > "Executors.newCachedThreadPool() is always preferred by IoService. It > is because using other thread pool type can lead to unpredictable > performance side effect in IoService. Once all threads in the pool > become in use, IoService will start to block while it tries to acquire > a thread from the pool and to start to show weird performance > degradation, which is sometimes very hard to trace." > > ? > > >
