Skip to content
This repository has been archived by the owner on Apr 6, 2024. It is now read-only.

Example that shows mongodb driver version 2.7 has a potential memory leak

License

Notifications You must be signed in to change notification settings

jakudlaty/mongo-memleak-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mongo-memleak-test

Example that shows mongodb driver version 2.7 has a potential memory leak This repository is an example for issue: mongodb/mongo-rust-driver#978

  • left axis is virtual size
  • right axis is size
  • probed by ps -C mongo-memleak-test -o pid=,size=,vsize=

Memory usage with mongodb driver version 2.7 Memory usage mongodb@2.7

Memory usage with mongodb driver version 2.6 Memory usage mongodb@2.6

Sample code in this repository - its a simple find_one which doesnt find a document

steps to reporoduce:

  • database should be empty
  • cargo build --release
  • ./target/release/mongo-memleak-test

Tested on:

  • AMD Ryzen 5950
  • 64GB or RAM
  • Gentoo Linux
  • stable rustc 1.73.0 (cc66ad468 2023-10-03)
  • default optimizations

About

Example that shows mongodb driver version 2.7 has a potential memory leak

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published