Met same issue as https://jira.mongodb.org/browse/JAVA-2460
Looks like the problem was fixed for
https://github.com/mongodb/mongo-java-driver/blob/0aa2ec20d5215c0ac727602dd2cd891c22c69ba8/driver-core/src/main/com/mongodb/connection/ByteBufBsonDocument.java#L59-L92
But when we use command listener, I found our code will use ByteBufBsonDocument#createList at
https://github.com/mongodb/mongo-java-driver/blob/0aa2ec20d5215c0ac727602dd2cd891c22c69ba8/driver-core/src/main/com/mongodb/connection/ByteBufBsonDocument.java#L43
and maybe duplicate here needs to be release?
https://github.com/mongodb/mongo-java-driver/blob/0aa2ec20d5215c0ac727602dd2cd891c22c69ba8/driver-core/src/main/com/mongodb/connection/ByteBufBsonDocument.java#L51
- related to
-
JAVA-2460 Memory leaks when using NettyStream and CommandListener
- Closed