[SERVER-12282] Memory leak in query PlanCache Created: 07/Jan/14 Updated: 11/Jul/16 Resolved: 21/Jan/14 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Querying |
| Affects Version/s: | 2.5.4 |
| Fix Version/s: | 2.5.5 |
| Type: | Bug | Priority: | Critical - P2 |
| Reporter: | Rui Zhang (Inactive) | Assignee: | Benety Goh |
| Resolution: | Done | Votes: | 0 |
| Labels: | 26qa | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
SHA & Build Infor: Tested with Ec2 Mongodb AMI |
||
| Attachments: |
|
||||
| Issue Links: |
|
||||
| Backwards Compatibility: | Fully Compatible | ||||
| Operating System: | ALL | ||||
| Steps To Reproduce: | Add some data to your db (5 gb is fine). Then:
Run multiple while(true) loops to leak faster... |
||||
| Participants: | |||||
| Description |
|
Running a simple operation (such as insert, remove the same document, in a loop) will result in heap space growth. See attached svg for heap analyzer result, which targets a std::vector and the stuff we're storing in it, within PlanCache. See reproduction steps above, for debugging. |
| Comments |
| Comment by Rui Zhang (Inactive) [ 22/Jan/14 ] |
|
for comparison, this is memory usage for 2.4.8 Total private: 37668 kb (d: 29836 | c: 7832) close this ticket |
| Comment by Rui Zhang (Inactive) [ 22/Jan/14 ] |
|
made a build with the fix, and memory leak is fixed. test run with 100k per batch, memory usage taken after each run Total private: 49732 kb (d: 26216 | c: 23516) will continue QA-373 test for much longer test run, and keep monitoring this. so far, it looks good. |
| Comment by Benety Goh [ 21/Jan/14 ] |
|
Fixed the CachedSolution memory leak in get_runner.cpp as indicated by Eric's investigation. |
| Comment by Githook User [ 21/Jan/14 ] |
|
Author: {u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}Message: |
| Comment by Rui Zhang (Inactive) [ 07/Jan/14 ] |
|
dan@10gen.com update the environment field with SHA and build infor schwerin & acm I haven't be able to isolate to that level. Already have traffic profiles for those, Will run it over the next few hours and over night. |
| Comment by Daniel Pasette (Inactive) [ 07/Jan/14 ] |
|
Is this running against 2.5.3 as indicated in the ticket? If not, please supply the git hash of the version used in testing. |