Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1448366

Summary: [GSS](6.6.2) HotRod client write buffer is too large
Product: [JBoss] JBoss Data Grid 6 Reporter: wfink
Component: InfinispanAssignee: Tristan Tarrant <ttarrant>
Status: CLOSED UPSTREAM QA Contact: Martin Gencur <mgencur>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.6.0CC: afield, jdg-bugs, jsenko
Target Milestone: CR2   
Target Release: 6.6.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-02-10 03:49:43 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1374440, 1448920    

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.