Details
-
Bug
-
Resolution: Done
-
Major - P3
-
None
-
2.4.1
-
None
-
Fully Compatible
-
ALL
-
Platforms 2017-01-23, Platforms 2017-02-13
Description
Running the google-perftools heap profiler reveals a lot of memory allocation in the AuthorizationManager, coming from StringData and its underlying UnorderedFastKeyTable. The test I ran set up a simple sharded cluster with 2 shards, each 3 node replica sets. The test was doing this:
for ( var i = 0; i < 100000000; i++) { var conn = new Mongo(); conn.getDB('test').foo.findOne({_id:1}); conn = null; sleep(10); }
|
I have attached a screenshot of the heap profiler output that shows lots of allocations happening within UnorderedFastKeyTable (look at the rightmost branch of the tree)