Hi,
I have wrote a IMAP4 server using grizzly 1.9.45
I try to optimize the threading that is in charge to read the TCP connection
Actually I set the ReadThreadCount property in the Controller class to 5 ( I'm not sure of the behaviours of this members and what is its role):
setReadThreadsCount(5);
I have tried to set a thread pool using setThreadPool method of the SelectorHandler class.
Here is the code that I wrote:
SelectorHandler selectorHandler;
.....
DefaultWorkerThreadFactory threadFactory = new DefaultWorkerThreadFactory();
ExecutorService executorService = Executors.newFixedThreadPool(5, threadFactory);
threadFactory.setWorkerThreadFactory(executorService);
selectorHandler.setThreadPool(executorService);
But I can not see any improvement of performance
What is the best way in order to improve the performance of the thread that are in charge to read the TCP connect.
regards
Eric Peiffer.