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

ASF GitHub Bot commented on ARTEMIS-1025:
-----------------------------------------

Github user franz1981 commented on the issue:

    https://github.com/apache/activemq-artemis/pull/1119
  
    @clebertsuconic I've simplified further the connection usage adding only a 
single method to it: 
[Connection::blockUntilWritable](https://github.com/franz1981/activemq-artemis/blob/95ef25d17eb29910553153caff743f215c3e69be/artemis-core-client/src/main/java/org/apache/activemq/artemis/spi/core/remoting/Connection.java#L59).
    It is meant to be used when is necessary to block (if allowed by the caller 
thread) until the Connection's write buffer will have enough room to buffer the 
request.
    In the NettyConnection implementation it will choose to block only if not 
in the event loop and considering the Netty write buffer size plus the pending 
writes on the event loop too.


> OutOfDirectMemoryError raised from Netty
> ----------------------------------------
>
>                 Key: ARTEMIS-1025
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-1025
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>          Components: Broker
>            Reporter: Francesco Nigro
>            Assignee: Francesco Nigro
>
> If you send and receive a lot of messages in short time to Artemis via Netty 
> connector, the OutOfDirectMemoryError exception is thrown from the client.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to