[JAVA-4518] Prune idle buffers in buffer pool Created: 06/Mar/22  Updated: 28/Oct/23  Resolved: 10/Mar/22

Status: Closed
Project: Java Driver
Component/s: Performance
Affects Version/s: None
Fix Version/s: 4.6.0

Type: New Feature Priority: Major - P3
Reporter: Jeffrey Yemin Assignee: Jeffrey Yemin
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
Related
Backwards Compatibility: Fully Compatible
Documentation Changes: Needed

 Description   

PowerOfTwoBufferPool should prune idle buffers. By default, it could prune any buffer that has been idle for more than one minute. Probably no need to configure the pruning behavior. Since we currently don't prune at all, just doing anything would be an improvement.



 Comments   
Comment by Githook User [ 10/Mar/22 ]

Author:

{'name': 'Jeff Yemin', 'email': 'jeff.yemin@mongodb.com', 'username': 'jyemin'}

Message: Make buffer pool shared and support pruning (#887)

  • Make buffer pool shared across all MongoClient instances
  • Enable pruning on the shared buffer pool

JAVA-4511
JAVA-4518
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/603f11a2a13ae31f32bd1812ca171804f04c13c9

Generated at Thu Feb 08 09:02:17 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.