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

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

      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.

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

              Created:
              Updated: