[SERVER-6810] Memory leak in mongos when using auth Created: 21/Aug/12 Updated: 11/Jul/16 Resolved: 22/Aug/12 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Sharding |
| Affects Version/s: | 2.2.0-rc1 |
| Fix Version/s: | 2.2.1, 2.3.0 |
| Type: | Bug | Priority: | Critical - P2 |
| Reporter: | Ben Becker | Assignee: | Ben Becker |
| Resolution: | Done | Votes: | 0 |
| Labels: | authentication, sharding | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Linux |
||
| Operating System: | ALL |
| Participants: |
| Description |
|
When spawning 15 mongo shells which run the following simple script, mongos leaks approximitely 2mb of memory per minute:
The same holds true when authenticating against a sharded database:
Connection pool stats are consistently at 819 during these tests:
No increase in resident memory is observed when sending non-auth commands/queries, such as:
|
| Comments |
| Comment by Daniel Pasette (Inactive) [ 23/Aug/12 ] |
|
the post-commit hook didn't pick up the commit for this for some reason: Message: SERVER:6810: free nonce once released from tsp |
| Comment by Ben Becker [ 22/Aug/12 ] |
|
This issue is unrelated to There is a thread-local reference to lastNonce which is allocated in CmdGetNonce::run(). The reference is released but not freed in CmdAuthenticate::run(). |