浏览代码

修改执行器核数
修改码包生成路径,dev环境有问题

tanzhongran 3 年之前
父节点
当前提交
bf6011cb85

+ 2 - 2
abi-cloud-qr-platform-common/src/main/java/com/abi/task/common/tablestore/TableStoreUtils.java

@@ -66,8 +66,8 @@ public class TableStoreUtils {
         taskExecutor = new ThreadPoolTaskExecutor();
         //设置线程池参数
         taskExecutor.setCorePoolSize(1);
-        taskExecutor.setMaxPoolSize(10);
-        taskExecutor.setQueueCapacity(10000);
+        taskExecutor.setMaxPoolSize(100);
+        taskExecutor.setQueueCapacity(1000000);
         taskExecutor.initialize();
     }
 

+ 0 - 5
abi-cloud-qr-platform-server/src/main/java/com/abi/qms/platform/infrastructure/mq/GenerateCodeConsumer.java

@@ -134,11 +134,6 @@ public class GenerateCodeConsumer {
 	public Long sum = 0L;
 
 
-//	public static void main(String[] args) {
-//		File file = new File("classpath*:/code");
-//		System.out.println(file.getPath());
-//	}
-
 	@SneakyThrows
 	@RabbitHandler
 	@RabbitListener(queues = GenerateCodeConsumer.GENERATE_CODE_BY_REPERTORY_QUEUE)