<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:17:01 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-48400] Secondary node memory arise while balancer doing work</title>
                <link>https://jira.mongodb.org/browse/SERVER-48400</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;We have an sharding instance configured a balancer window for 3:00am - 6:00am(GMT+8) and we observed that while balancer is doing work, all shard&apos;s secondary nodes&apos; memory would arise. Such things would not happen on primary nodes. This may be related with the fact that all query requests are on secondary nodes. I have enabled one shard&apos;s heapProfiling and uploaded FTDC data and related logs. Please help identify this issue. Thanks!&lt;/p&gt;</description>
                <environment></environment>
        <key id="1361931">SERVER-48400</key>
            <summary>Secondary node memory arise while balancer doing work</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</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="3">Duplicate</resolution>
                                        <assignee username="dmitry.agranat@mongodb.com">Dmitry Agranat</assignee>
                                    <reporter username="mingyan.zc@gmail.com">Cen Zheng</reporter>
                        <labels>
                    </labels>
                <created>Tue, 26 May 2020 05:54:11 +0000</created>
                <updated>Mon, 1 Jun 2020 12:13:19 +0000</updated>
                            <resolved>Mon, 1 Jun 2020 12:13:19 +0000</resolved>
                                    <version>4.0.13</version>
                                                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="3148369" author="dmitry.agranat" created="Mon, 1 Jun 2020 12:12:49 +0000"  >&lt;p&gt;You are welcome &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=mingyan.zc%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;mingyan.zc@gmail.com&quot;&gt;mingyan.zc@gmail.com&lt;/a&gt;. I will go ahead and link this ticket to &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-40361&quot; title=&quot;Reduce memory footprint of plan cache entries&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-40361&quot;&gt;&lt;del&gt;SERVER-40361&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="3148300" author="mingyan.zc@gmail.com" created="Mon, 1 Jun 2020 10:20:08 +0000"  >&lt;p&gt;Hi, Dima,&lt;/p&gt;

&lt;p&gt;We found that planCache was indeed the root cause. They were too many queryShapes occupying it. Had asked user to optimize the business.&#160;Thanks a lot!&lt;/p&gt;</comment>
                            <comment id="3147916" author="dmitry.agranat" created="Sun, 31 May 2020 14:29:56 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=mingyan.zc%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;mingyan.zc@gmail.com&quot;&gt;mingyan.zc@gmail.com&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;After looking at a larger window, May 22-25, I can see a memory growth of ~4.3 GB which is related to the &lt;tt&gt;internalQueryCacheSize&lt;/tt&gt;. This issue is fixed in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-40361&quot; title=&quot;Reduce memory footprint of plan cache entries&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-40361&quot;&gt;&lt;del&gt;SERVER-40361&lt;/del&gt;&lt;/a&gt; and the mitigation strategy is to lower the &lt;tt&gt;internalQueryCacheSize&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt; &lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;https://jira.mongodb.org/secure/attachment/263445/263445_planCacheTotalSizeEstimateBytes.png&quot; width=&quot;100%&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt; &lt;/p&gt;

&lt;p&gt;The above includes the first 10 stacks which have the same shape as the &lt;tt&gt;planCacheTotalSizeEstimateBytes&lt;/tt&gt; parameter.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Dima&lt;/p&gt;</comment>
                            <comment id="3119772" author="mingyan.zc@gmail.com" created="Wed, 27 May 2020 11:50:33 +0000"  >&lt;p&gt;Hi, Dima,&#160;&lt;/p&gt;

&lt;p&gt;Thanks for the analyst. It looks like the increased resident memory is being gradually reclaimed, but from a longer point of view(from 5-22 to 5-25). It has increased by ~5 GB and continue to growth. There is also no such big memory increase in the Hidden node, also having the replicated inserts. So it may be concerned with user&apos;s query requests. I wonder if there are some hidden problems causing this.&lt;/p&gt;</comment>
                            <comment id="3119687" author="dmitry.agranat" created="Wed, 27 May 2020 09:50:33 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=mingyan.zc%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;mingyan.zc@gmail.com&quot;&gt;mingyan.zc@gmail.com&lt;/a&gt;, secondary memory arise during this time because there are replicated insert operations going through during this window.&lt;/p&gt;

&lt;p&gt; &lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;https://jira.mongodb.org/secure/attachment/262637/262637_inserts.png&quot; width=&quot;100%&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt; &lt;/p&gt;

&lt;p&gt;During this time, the resident memory is being increased by ~2 GB. After that the memory is being gradually reclaimed. I think this is an expected behavior.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Dima&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="724151">SERVER-40361</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="263444" name="SERVER-48400.png" size="277232" author="dmitry.agranat@mongodb.com" created="Sun, 31 May 2020 14:07:25 +0000"/>
                            <attachment id="262400" name="diagnostic.data.tar.gz" size="156549288" author="mingyan.zc@gmail.com" created="Tue, 26 May 2020 05:53:02 +0000"/>
                            <attachment id="262637" name="inserts.png" size="74590" author="dmitry.agranat@mongodb.com" created="Wed, 27 May 2020 09:48:57 +0000"/>
                            <attachment id="262401" name="mongod.log.tar.gz" size="18743170" author="mingyan.zc@gmail.com" created="Tue, 26 May 2020 05:44:30 +0000"/>
                            <attachment id="263445" name="planCacheTotalSizeEstimateBytes.png" size="263944" author="dmitry.agranat@mongodb.com" created="Sun, 31 May 2020 14:28:24 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>5.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>Wed, 27 May 2020 09:50:33 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        3 years, 36 weeks, 2 days 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_17050" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Downstream Team Attention</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="16941"><![CDATA[Not Needed]]></customfieldvalue>

                        </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>dmitry.agranat@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            3 years, 36 weeks, 2 days ago
                        </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>mingyan.zc@gmail.com</customfieldvalue>
            <customfieldvalue>dmitry.agranat@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hxmxgv:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</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_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>
                                    <customfieldvalue><![CDATA[dmitry.agranat@mongodb.com]]></customfieldvalue>
    

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

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