EJServer uses two different Threadpools to manage serverside tasks:
A relationship of 2/1 between threads for reading and processing client requests and threads for dispatching server responses offers the most balanced server behavior on the average .
The respective threadpool can be adjusted using the method setMaxReadProcessors respectively setMaxWriteProcessors of EJServer:
import de.netseeker.ejoe.EJServer; ... { EJServer server = new EJServer( ... ); //expected server load? //available hardware resources? //how many read/process-threads are required? server.setMaxReadProcessors( number of read/process-threads ); //how many write-threads are required? server.setMaxWriteProcessors( number of write-threads ); //start the server server.start(); ... }