generated from root/miduo_server
修改消息处理线程为8个
parent
6f6970ee17
commit
12caa62435
|
|
@ -46,7 +46,8 @@ public class ProtocolsManager implements ProtocolsAbstract {
|
|||
|
||||
|
||||
public void init(int threadNum) {
|
||||
HANDLER_THREAD_NUM = threadNum;
|
||||
// HANDLER_THREAD_NUM = threadNum;
|
||||
HANDLER_THREAD_NUM = 8;//强制为8个线程,50个线程太重了,暂时改成8个
|
||||
handlerThreads = new HandlerLogicThread[HANDLER_THREAD_NUM];
|
||||
initContext();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue