参数调整

back_recharge
jiahuiwen 2021-08-17 17:56:44 +08:00
parent 821d1425f6
commit 461de0b494
2 changed files with 2 additions and 2 deletions

View File

@ -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();

View File

@ -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 {