You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "nabarun (JIRA)" <ji...@apache.org> on 2018/10/03 21:38:42 UTC

[jira] [Closed] (GEODE-5043) Protobuf server and client are sending multiple packets for a single request

     [ https://issues.apache.org/jira/browse/GEODE-5043?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

nabarun closed GEODE-5043.
--------------------------

> Protobuf server and client are sending multiple packets for a single request
> ----------------------------------------------------------------------------
>
>                 Key: GEODE-5043
>                 URL: https://issues.apache.org/jira/browse/GEODE-5043
>             Project: Geode
>          Issue Type: Bug
>          Components: client/server
>            Reporter: Dan Smith
>            Assignee: Dan Smith
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.7.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> While doing some performance testing, we discovered that the protobuf client and protobuf server are actually sending multiple packets per request and response based on the the LinuxSystemStats.xmitPackets. The messages are small enough they should fit in a single packet.
>  
> Looking at the code, it looks like in both the client and the server we are writing directly to socket.getOutputStream(). As soon as data is written to that outputstream it could be sent to the the remote side. Wrapping that in the BufferedOutputStream eleminates the duplicate packets and improves the performance.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)