参数调整
parent
821d1425f6
commit
461de0b494
|
@ -123,7 +123,7 @@ public class HandlerLogicThread extends Thread{
|
||||||
if(hasAsyncWorker){
|
if(hasAsyncWorker){
|
||||||
MongoUtil.getInstence().lastUpdate();
|
MongoUtil.getInstence().lastUpdate();
|
||||||
}
|
}
|
||||||
Thread.sleep(2);
|
Thread.sleep(5);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
int userId = packetNetData.getUserId();
|
int userId = packetNetData.getUserId();
|
||||||
|
|
|
@ -39,7 +39,7 @@ public class ProtocolsManager implements ProtocolsAbstract {
|
||||||
private static ProtocolsManager instance = new ProtocolsManager();
|
private static ProtocolsManager instance = new ProtocolsManager();
|
||||||
private Map<Integer, BaseHandler> handlers = new HashMap<>();
|
private Map<Integer, BaseHandler> handlers = new HashMap<>();
|
||||||
private static ClassLoader classLoader = GameApplication.class.getClassLoader();
|
private static ClassLoader classLoader = GameApplication.class.getClassLoader();
|
||||||
public final static int HANDLER_THREAD_NUM = 8;
|
public final static int HANDLER_THREAD_NUM = 30;
|
||||||
public static HandlerLogicThread[] handlerThreads = new HandlerLogicThread[HANDLER_THREAD_NUM];
|
public static HandlerLogicThread[] handlerThreads = new HandlerLogicThread[HANDLER_THREAD_NUM];
|
||||||
|
|
||||||
static {
|
static {
|
||||||
|
|
Loading…
Reference in New Issue