rocketmq
rocketmq copied to clipboard
Thread pool "publicExecutor" may cause full GC
BUG REPORT
- 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.
- Please tell us about your environment:
Mac OS X, RocketMQ 4.3.2.