Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-108

ByteEncoder and ByteDecoder allocate 8+M buffer each

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.0
    • Affects Version/s: 1.4
    • Component/s: None
    • Labels:
      None
    • Environment:
      osx, linux

      ByteEncoder and ByteDecoder allocate 8+M buffer each which means 16+M for each connection.

      This means we need to increase the MaxDirectMemorySize quite significantly to be able to create a decent number of connections to perform well under many concurrent requests.

      While I can understand why this has been done, it would be good to be able to at least configure the MAX_OBJECT_SIZE for our application, as we'll only ever be passing around documents < 1M.

      Alternatively, could the encoder and decoder stream the requests using a much smaller buffer.

      Am happy to look at creating a patch depending upon preferred solution.

            Assignee:
            eliot Eliot Horowitz (Inactive)
            Reporter:
            thesmith Ben Smith
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: