[jboss-jira] [JBoss JIRA] (JGRP-2241) Bundler using direct memory as buffer

Bela Ban (JIRA) issues at jboss.org
Thu Jul 19 02:58:00 EDT 2018


    [ https://issues.jboss.org/browse/JGRP-2241?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13607885#comment-13607885 ] 

Bela Ban commented on JGRP-2241:
--------------------------------

Links:
* https://dzone.com/articles/troubleshooting-problems-with-native-off-heap-memo

> Bundler using direct memory as buffer
> -------------------------------------
>
>                 Key: JGRP-2241
>                 URL: https://issues.jboss.org/browse/JGRP-2241
>             Project: JGroups
>          Issue Type: Feature Request
>            Reporter: Bela Ban
>            Assignee: Bela Ban
>             Fix For: 4.0.13
>
>
> The current bundler impls use a byte[] array in an output stream as buffer into which messages are written.
> If we instead used a direct byte buffer (off-heap), the JDK would not create an additional copy but simply pass the contents to the corresponding socket. This would reduce the memory allocation rate.
> Direct buffers can also be used on the receiver side, investigate.



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list