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

Provide an option to use pooled NIO direct buffers to minimise impact on GC

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Performance
    • Labels:
      None

      Description

      When the driver is being used with GridFS to serve binary data ('files) over HTTP, the ByteBuffers that are returned are on-heap. Servers such as vertx are capable of directly serving ByteBuffers, using Netty's ByteBuf abstraction. By using on-heap buffers, we place undue pressure on the JVM GC, as the concurrent load on the service (that's using the driver) increases. Please can we have an option at least to direct the driver to use pooled direct buffers. Thanks.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            dazraf Farzad Pezeshkpour
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: