Are worker threads shared across boss threads separated by host/ip?
anthony_w
awwold69 at hotmail.com
Mon Jul 26 21:41:04 EDT 2010
I tried this experiment. In 1 JVM I started up 5 identical server apps, each
on their own port. Each server shares the same boss thread pool, the same
worker thread pool, and the same execution handler thread pool (3 thread
pools total).
On the client side I made 4 connections to each server (5x4=20). As
expected I see 5 boss threads. There are almost 20 execution handler
threads. I expected this as each client connection is repetitively sending
messages at a rapid pace.
But, I only see 4 worker threads! I guess I thought that there would be
more than 4, possibly even up to 20. I know the documentation says that a
worker thread can read or write for more than one channel. Perhaps I just
assumed it would be within channels bound to the same hostname or ip.
Thought?
--
View this message in context: http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Are-worker-threads-shared-across-boss-threads-separated-by-host-ip-tp5340529p5340529.html
Sent from the Netty User Group mailing list archive at Nabble.com.
More information about the netty-users
mailing list