Jan Bednar created CAMEL-13527:
----------------------------------

             Summary: Implement missing optimisation for 
DelimiterBasedFrameDecoder
                 Key: CAMEL-13527
                 URL: https://issues.apache.org/jira/browse/CAMEL-13527
             Project: Camel
          Issue Type: Improvement
          Components: camel-netty4
    Affects Versions: 3.0.0-M2, 2.24.0
            Reporter: Jan Bednar


See pretty nice analysis on SO 
[https://stackoverflow.com/questions/56110408/memory-leak-in-camel-netty-tcp-client-when-consuming-lines-with-windows-line-bre]

*io.netty.handler.codec.DelimiterBasedFrameDecoder* internally delegates 
decoding to *io.netty.handler.codec.LineBasedFrameDecoder*. This delegation is 
not working with Camel, because Netty internally checks for condition
{code:java}
this.getClass() != DelimiterBasedFrameDecoder.class // 
io.netty.handler.codec.DelimiterBasedFrameDecoder line 174 - !isSubclass()
{code}
We can recreate similar optimisation inside 
*org.apache.camel.component.netty4.codec.DelimiterBasedFrameDecoder* and get 
(according to SO post) significant performance improvement.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to