yangyi438 opened a new issue #1250: Network glitch or broker  power cut may 
cause  producer oom?
URL: https://github.com/apache/rocketmq/issues/1250
 
 
   in method 
   org.apache.rocketmq.remoting.netty#invokeSyncImpl()
   line 406  use writeAndFlush   
   if Network glitch or broker  power cut or broker recieve this request of  
producer slowly, this will occupy  netty send buffer 
   more and more ,util netty idle Event (default idle time is 120s is very 
large)
    happened this channel will
   be close and this ChannelFutureListener will be call and release send buffer 
   if producter call it large concurrency ,may be oom?
   use channel.isWritable() can know how many netty send buff 
   when  channel.isWritable()==true then encode request to netty buffer
   All in all, we need to avoid this extreme situation
    just an opinion
   
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to