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

DBTCPConnector._checkWriteError () consume a PoolOutputBuffer not returned to SimplePool

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.11.0
    • Affects Version/s: 2.9.3
    • Component/s: Performance
    • Environment:
      ubuntu10, jdk1.6,mongodb2.0.3, mongo-java-driver-2.9.3

      MongoDB Java Driver every time execution update method will from to get a PoolOutputBuffer in SimplePool, returned to the pool after use, but when set WriteConcern for SAFE mode, the drive itself will perform DBTCPConnector._checkWriteError () method to check the safety of the method from the pool made ​​a PoolOutputBuffer, after not returned to the pool, this will consume a PoolOutputBuffer, and this PoolOutputBuffer default at least occupy more than 50KByte memory space, and a tremendous waste of resources.When high concurrent to monitoring jvm memory usage knew terror Eden area is growing very fast.

            Assignee:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Reporter:
            barrytdc barry
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: