You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2022/01/22 02:10:40 UTC

[GitHub] [rocketmq] XiaoyiPeng commented on a change in pull request #3784: #3781 压测生产者内存溢出

XiaoyiPeng commented on a change in pull request #3784:
URL: https://github.com/apache/rocketmq/pull/3784#discussion_r789733049



##########
File path: remoting/src/main/java/org/apache/rocketmq/remoting/netty/NettyRemotingClient.java
##########
@@ -111,14 +108,21 @@ public NettyRemotingClient(final NettyClientConfig nettyClientConfig,
             publicThreadNums = 4;
         }
 
-        this.publicExecutor = Executors.newFixedThreadPool(publicThreadNums, new ThreadFactory() {
-            private AtomicInteger threadIndex = new AtomicInteger(0);
+        this.publicThreadPoolQueue = new LinkedBlockingQueue<Runnable>(50000);

Review comment:
       I don't think that's the problem here,  `publicExecutor` handles requests from the server (eg: `CHECK_TRANSACTION_STATE` or `RESET_CONSUMER_CLIENT_OFFSET` etc) instead of client send requests.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org