You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by 李向锋 <li...@infosec.com.cn> on 2007/10/22 03:23:34 UTC

Re: reply: mina performance

Thanks. I will use other thread model and test it.

-----邮件原件-----
发件人: mat [mailto:forum.maillist@gmail.com] 
发送时间: 2007年10月22日 0:03
收件人: dev@mina.apache.org
主题: Re: 答复: reply: mina performance

Executors.newCachedThreadPool() is always preferred by IoService. What I
said was ExecutorFilter.

On 10/21/07, Brian McCallister <br...@skife.org> 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."
>
> ?
>
>
>