Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-5043

Protobuf server and client are sending multiple packets for a single request

    XMLWordPrintableJSON

Details

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              upthewaterspout Dan Smith
              upthewaterspout Dan Smith
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m