소스 검색

Merge branch 'dev-xym-add-group' of Server/long-article-manage into master

xueyiming 5 달 전
부모
커밋
a132681794
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      long-article-server/src/main/java/com/tzld/piaoquan/longarticle/service/local/impl/CoreServiceImpl.java

+ 3 - 3
long-article-server/src/main/java/com/tzld/piaoquan/longarticle/service/local/impl/CoreServiceImpl.java

@@ -315,12 +315,12 @@ public class CoreServiceImpl implements CoreService {
 
 
     // 定义一个阻塞队列
-    private static final ArrayBlockingQueue<MatchContent> matchQueue = new ArrayBlockingQueue<>(100000);
+    private static final ArrayBlockingQueue<MatchContent> matchQueue = new ArrayBlockingQueue<>(1000000);
 
-    private static final ArrayBlockingQueue<PlanAccount> coreQueue = new ArrayBlockingQueue<>(100000);
+    private static final ArrayBlockingQueue<PlanAccount> coreQueue = new ArrayBlockingQueue<>(1000000);
 
 
-    private static final int size = 5;
+    private static final int size = 10;
     // 定义一个线程池,设置消费线程的数量
     private static final ThreadPoolExecutor matchPoolExecutor = (ThreadPoolExecutor) Executors.newFixedThreadPool(size);