Optimizing Netty for fast socket accept/creation
"이희승 (Trustin Lee)"
trustin at gmail.com
Wed Jul 8 12:22:44 EDT 2009
Hey JF,
Good to see you here. :)
On 07/09/2009 12:30 AM, Jeanfrancois Arcand wrote:
> Salut,
>
> 이희승 (Trustin Lee) wrote:
>> Hi Carl,
>>
>> One more question. :)
>>
>> Does the accept throughput increase linearly as the number of accept
>> threads (the number of bound ports in your case) increases?
>>
>> If you take a look at NioServerSocketPipelineSink.java:161, you will see
>> the following code:
>>
>> bossExecutor.execute(new IoWorkerRunnable(
>> new ThreadRenamingRunnable(
>> new Boss(channel),
>> "New I/O server boss #" + id +
>> " (channelId: " + channel.getId() +
>> ", " + channel.getLocalAddress() + ')')));
>>
>> I increased the number of acceptor threads like the following:
>>
>> for (int i = 0; i < 2; i ++) {
>
> How many core your machine has? We usually use the number of core as an
> indication.
4. Do you mean the same ServerSocketChannel is registered to multiple
selectors with OP_ACCEPT in Grizzly?
Trustin
More information about the netty-users
mailing list