[ 
https://issues.apache.org/jira/browse/ACTIVEMQ6-94?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14508917#comment-14508917
 ] 

ASF GitHub Bot commented on ACTIVEMQ6-94:
-----------------------------------------

Github user gaohoward commented on the pull request:

    https://github.com/apache/activemq-6/pull/211#issuecomment-95559754
  
    Ok although the unit test pass, but with manual test I sometimes got OOM 
still. Look at this code in ChannelImpl.send():
    
    resendCache.add(packet);
    
    
https://github.com/clebertsuconic/activemq-6/blob/new-Bridge/activemq-core-client/src/main/java/org/apache/activemq/core/protocol/core/impl/ChannelImpl.java#L294
    
    When sending a large, each packet holds a chunk of it, and because it's 
stored in the resendCache, it doesn't get gc'ed after the bytes are sent to the 
other node. Eventually before the large send complete, all previous sent chunks 
will be held in memory. 
    
    any comment?
    
    Howard



> HornetQ Bridge does not handle large messages
> ---------------------------------------------
>
>                 Key: ACTIVEMQ6-94
>                 URL: https://issues.apache.org/jira/browse/ACTIVEMQ6-94
>             Project: Apache ActiveMQ 6
>          Issue Type: Bug
>    Affects Versions: 6.0.0
>            Reporter: Howard Gao
>            Assignee: Howard Gao
>             Fix For: 6.1.0
>
>
> When sending a large message that exceeds the size of Integer.MAX_VALUE, the 
> bridge will get negative chunk size during fowarding. And the resend cache is 
> not limited so there is a potential that it may get OutOfMemory exception.
> Related jira:
> https://issues.jboss.org/browse/HORNETQ-1465



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to