Each SocketAcceptor will use its Executor for running its processors.
Each processor will ask the SocketAcceptor's executor to execute it.
Let's say that your executor allows 16 core threads and you have 16
processors then you will end up with 16 threads.

Having said that you can create SocketAcceptors using the following
constructor: SocketAcceptor(int processorCount, Executor executor) and
pass the same executor when creating many instances of SocketAcceptors.

In the tests that we are running we have 1 SocketAcceptor and based on
the number of CPUs available we define the number of processors to have.
That means that if you have one CPU then you will end up with one
SocketAcceptor, one Executor and one thread inside of the Executor. So
far we have tested Wildfire with 30K concurrent connections and it
performs almost like if the server was alone for you. :)

Regards,

  -- Gato

-----Original Message-----
From: Newcomb, Michael-P57487 [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 15, 2006 12:35 PM
To: [email protected]
Subject: One selector (thread) per SocketAcceptor?

If I have multiple SocketAcceptors, will there be 1 selector thread per
acceptor?

Thanks,
Michael

Reply via email to