<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:28:07 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[SERVER-12282] Memory leak in query PlanCache</title>
                <link>https://jira.mongodb.org/browse/SERVER-12282</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;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&apos;re storing in it, within PlanCache.  See reproduction steps above, for debugging.&lt;/p&gt;</description>
                <environment>SHA &amp;amp; Build Infor: &lt;br/&gt;
04221630900335fc6ee0d9922edae9d29f02d66d&lt;br/&gt;
Build 2014-01-03&lt;br/&gt;
x86_64&lt;br/&gt;
&lt;br/&gt;
Tested with Ec2 Mongodb AMI</environment>
        <key id="105011">SERVER-12282</key>
            <summary>Memory leak in query PlanCache</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="2" iconUrl="https://jira.mongodb.org/images/icons/priorities/critical.svg">Critical - P2</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="benety.goh@mongodb.com">Benety Goh</assignee>
                                    <reporter username="rui.zhang">Rui Zhang</reporter>
                        <labels>
                            <label>26qa</label>
                    </labels>
                <created>Tue, 7 Jan 2014 20:04:10 +0000</created>
                <updated>Mon, 11 Jul 2016 17:18:28 +0000</updated>
                            <resolved>Tue, 21 Jan 2014 23:17:47 +0000</resolved>
                                    <version>2.5.4</version>
                                    <fixVersion>2.5.5</fixVersion>
                                    <component>Querying</component>
                                        <votes>0</votes>
                                    <watches>8</watches>
                                                                                                                <comments>
                            <comment id="486177" author="rui.zhang" created="Wed, 22 Jan 2014 23:57:01 +0000"  >&lt;p&gt;for comparison, this is memory usage for 2.4.8&lt;/p&gt;

&lt;p&gt;Total private:        37668 kb (d: 29836 | c: 7832)&lt;br/&gt;
Total private:        1810460 kb (d: 31768 | c: 1778692)&lt;br/&gt;
Total private:        2043816 kb (d: 31820 | c: 2011996)&lt;br/&gt;
Total private:        2075752 kb (d: 32036 | c: 2043716)&lt;br/&gt;
Total private:        2080084 kb (d: 32032 | c: 2048052)&lt;br/&gt;
Total private:        2080680 kb (d: 32032 | c: 2048648)&lt;br/&gt;
Total private:        2080780 kb (d: 32032 | c: 2048748)&lt;br/&gt;
Total private:        2080796 kb (d: 32032 | c: 2048764)&lt;br/&gt;
Total private:        2080804 kb (d: 32032 | c: 2048772)&lt;br/&gt;
Total private:        2080808 kb (d: 32036 | c: 2048772)&lt;/p&gt;

&lt;p&gt;close this ticket&lt;/p&gt;</comment>
                            <comment id="486148" author="rui.zhang" created="Wed, 22 Jan 2014 23:29:57 +0000"  >&lt;p&gt;made a build with the fix, and memory leak is fixed. &lt;/p&gt;

&lt;p&gt;test run with 100k per batch, memory usage taken after each run &lt;/p&gt;

&lt;p&gt;Total private:        49732 kb (d: 26216 | c: 23516)&lt;br/&gt;
Total private:        1822276 kb (d: 27628 | c: 1794648)&lt;br/&gt;
Total private:        2056200 kb (d: 27788 | c: 2028412)&lt;br/&gt;
Total private:        2087692 kb (d: 28056 | c: 2059636)&lt;br/&gt;
Total private:        2092008 kb (d: 28256 | c: 2063752)&lt;br/&gt;
Total private:        2092856 kb (d: 28496 | c: 2064360)&lt;br/&gt;
Total private:        2093296 kb (d: 28784 | c: 2064512)&lt;br/&gt;
Total private:        2093308 kb (d: 28788 | c: 2064520)&lt;br/&gt;
Total private:        2093320 kb (d: 28796 | c: 2064524)&lt;br/&gt;
Total private:        2093324 kb (d: 28800 | c: 2064524)&lt;/p&gt;

&lt;p&gt;will continue QA-373 test for much longer test run, and keep monitoring this. so far, it looks good.&lt;/p&gt;</comment>
                            <comment id="485302" author="benety.goh" created="Tue, 21 Jan 2014 23:17:47 +0000"  >&lt;p&gt;Fixed the CachedSolution memory leak in get_runner.cpp as indicated by Eric&apos;s investigation.&lt;/p&gt;</comment>
                            <comment id="485297" author="xgen-internal-githook" created="Tue, 21 Jan 2014 23:14:31 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;benety&apos;, u&apos;name&apos;: u&apos;Benety Goh&apos;, u&apos;email&apos;: u&apos;benety@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-12282&quot; title=&quot;Memory leak in query PlanCache&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-12282&quot;&gt;&lt;del&gt;SERVER-12282&lt;/del&gt;&lt;/a&gt; fixed memory leak in get_runner. fixed planFromCache signature to reflect cached solution read-only access&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/06f7f3ca68c95277b1c11f469f01e61cbeb3cc76&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/06f7f3ca68c95277b1c11f469f01e61cbeb3cc76&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="478633" author="rui.zhang" created="Tue, 7 Jan 2014 23:01:02 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=dan%4010gen.com&quot; class=&quot;user-hover&quot; rel=&quot;dan@10gen.com&quot;&gt;dan@10gen.com&lt;/a&gt; update the environment field with SHA and build infor&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=schwerin&quot; class=&quot;user-hover&quot; rel=&quot;schwerin&quot;&gt;schwerin&lt;/a&gt; &amp;amp; &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=acm&quot; class=&quot;user-hover&quot; rel=&quot;acm&quot;&gt;acm&lt;/a&gt; I haven&apos;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. &lt;/p&gt;</comment>
                            <comment id="478609" author="dan@10gen.com" created="Tue, 7 Jan 2014 22:32:50 +0000"  >&lt;p&gt;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.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="36013" name="dmesg.log" size="9318" author="rui.zhang" created="Tue, 7 Jan 2014 21:29:30 +0000"/>
                            <attachment id="36024" name="memory_trend_248_vs_255.png" size="85473" author="rui.zhang" created="Tue, 7 Jan 2014 22:01:54 +0000"/>
                            <attachment id="36014" name="memory_trend_255.png" size="36768" author="rui.zhang" created="Tue, 7 Jan 2014 21:29:30 +0000"/>
                            <attachment id="36483" name="plancacheleak.svg" size="82245" author="milkie@mongodb.com" created="Tue, 21 Jan 2014 19:49:55 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>6.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 7 Jan 2014 21:34:56 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        10 years, 4 weeks ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            10 years, 4 weeks ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>benety.goh@mongodb.com</customfieldvalue>
            <customfieldvalue>dan@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>rui.zhang</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrm4e7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrv7sv:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>96094</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10750" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Steps To Reproduce</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;Add some data to your db (5 gb is fine).  Then:&lt;/p&gt;
&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;db.foo.ensureIndex({x:1})&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;while (true) { db.foo.insert({x:1}); db.foo.remove({x:1});}&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;
&lt;p&gt;Run multiple while(true) loops to leak faster...&lt;/p&gt;</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10166" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Tests Written</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10153"><![CDATA[Unneeded]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hsp0lj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>