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."

?


Reply via email to