Possibly Memory leak in PyMongo 4.3.3?

Hi, I am using Apache2 + Flask + PyMongo (4.3.3), there are memory leak observed. I tried Tracemalloc for memory usage snapshot and found top 2 memory consumer here which keep increasing:

lib/python3.10/site-packages/pymongo/message.py:692: size=67.9 KiB (+67.9 KiB), count=1130 (+1130), average=62 B

lib/python3.10/site-packages/bson/init .py:1122: size=42.6 KiB (+42.6 KiB), count=734 (+734), average=59 B

Is it a known issue? Or possibly fixed in 4.5.0?

Thank you very much!

Thanks for the report @Mary_Zhang1! I opened https://jira.mongodb.org/browse/PYTHON-3982 to investigate.

Hi Steve, Thank you very much for help.