Bug 1448366 - [GSS](6.6.2) HotRod client write buffer is too large
Summary: [GSS](6.6.2) HotRod client write buffer is too large
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: JBoss Data Grid 6
Classification: JBoss
Component: Infinispan
Version: 6.6.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: CR2
: 6.6.2
Assignee: Tristan Tarrant
QA Contact: Martin Gencur
URL:
Whiteboard:
Depends On:
Blocks: 1374440 1448920
TreeView+ depends on / blocked
 
Reported: 2017-05-05 09:50 UTC by wfink
Modified: 2025-02-10 03:49 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-02-10 03:49:43 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker ISPN-5740 0 Major Resolved HotRod client write buffer is too large 2018-02-05 17:35:01 UTC
Red Hat Issue Tracker ISPN-7802 0 Major Resolved Use chunked reads/writes in TcpTransport 2018-02-05 17:35:01 UTC

Description wfink 2017-05-05 09:50:22 UTC
Description of problem:

The ISPN-1015 fix added a buffer to the HotRod client transport to reduce the number of syscalls. But that buffer's size is not fixed, instead it's based on Socket.getSendBufferSize(), which in turn is based on the kernel's net.core.wmem_max.

JGroups needs net.core.wmem_max greater or equal than UDP.ucast_send_buf_size, which is 1MB by default. That is probably too much for the TcpTransport's buffer, because the buffer is also duplicated in the OS.

Comment 4 Martin Gencur 2017-05-19 08:22:24 UTC
I have used the reproducer from https://bugzilla.redhat.com/show_bug.cgi?id=1448920 and CR1 fails in the second test: Read operation. It is failing for me with OOME exceptions. 
Apparently, one commit is missing here in CR1 and it can be found in branch JDG_6.6.0.GA-bz-1448920 in this repo: git://git.app.eng.bos.redhat.com/infinispan/infinispan.git
When I apply this commit to CR1 build and rebuild the hotrod library, the test passes. The commit is called: [BZ1448920] Limit buffer sizes for reads and writes

Comment 7 Red Hat Bugzilla 2025-02-10 03:49:43 UTC
This product has been discontinued or is no longer tracked in Red Hat Bugzilla.


Note You need to log in before you can comment on or make changes to this bug.