rocketmq icon indicating copy to clipboard operation
rocketmq copied to clipboard

Thread pool "publicExecutor" may cause full GC

Open ymwneu opened this issue 7 years ago • 0 comments

BUG REPORT

  1. Please describe the issue you observed:
  • What did you do (The steps to reproduce)?

I found the thread pool publicExecutor in class "NettyRemotingClient" is a "FixedThreadPool", it use LinkedBlockingQueue to store task. When use this thread pool to execute send message, the message will accumulate in linkedBlockingQueue if the send rate is very large. Then full GC will take place and the message in the queue will be timeout.

  • What did you expect to see?

A high send rate will not cause full GC.

  • What did you see instead?

Full GC.

  1. Please tell us about your environment:

Mac OS X, RocketMQ 4.3.2.

ymwneu avatar Dec 05 '18 15:12 ymwneu