Effective use of thread pool in server + client setup

Marc-André Laverdière marcandre.laverdiere at gmail.com
Mon Jul 25 03:32:14 EDT 2011


Are you using OIO or NIO?

The core worker threads are reccomended to be 2x the number of cores
NIO needs a few worker threads and then a bigger thread pool in an
executor handler
OIO just needs as many worker threads as your application needs.

On 7/23/11, George <georgel2004 at gmail.com> wrote:
> Hello,
>
> Suggestion is needed for a high bandwidth throughput oriented app.
>
> In most of the example codes, i notice separate threadpool for boss and
> workers except the proxy dump.
>
> I have a setup where the code acts as a server and client as well.
>
> How many threadpools should i create in such setup?
>
> 1 thread pool that acts as server boss, server worker, client boss and
> client worker
> 2 thread pools that acts as server + client boss and server + client worker
> 4 threadpools 1 each for server boss, server worker, client boss, client
> worker.
>
> --
> Thanks
> George L
>


-- 
Marc-André LAVERDIÈRE
"Perseverance must finish its work so that you may be mature and complete,
not lacking anything." -James 1:4
http://asimplediscipleslife.blogspot.com/
mlaverd.theunixplace.com



More information about the netty-users mailing list