<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:29:26 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-32180] mongod oom with low connections</title>
                <link>https://jira.mongodb.org/browse/SERVER-32180</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;hi &#65292;&lt;/p&gt;

&lt;p&gt;my mongod oom  with  few connections&#65292;&lt;/p&gt;

&lt;p&gt; diagnostic.data files  is attached&#65292;&lt;/p&gt;

&lt;p&gt;please help me to view these files&#12290;&lt;/p&gt;</description>
                <environment></environment>
        <key id="468593">SERVER-32180</key>
            <summary>mongod oom with low connections</summary>
                <type id="6" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14720&amp;avatarType=issuetype">Question</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="kelsey.schubert@mongodb.com">Kelsey Schubert</assignee>
                                    <reporter username="shawn001">shawn</reporter>
                        <labels>
                    </labels>
                <created>Wed, 6 Dec 2017 02:49:42 +0000</created>
                <updated>Fri, 26 Jan 2018 16:43:16 +0000</updated>
                            <resolved>Tue, 26 Dec 2017 17:18:50 +0000</resolved>
                                    <version>3.4.4</version>
                                                    <component>Performance</component>
                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="1759562" author="thomas.schubert" created="Tue, 26 Dec 2017 17:18:39 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=shawn001&quot; class=&quot;user-hover&quot; rel=&quot;shawn001&quot;&gt;shawn001&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Thank you for providing the complete logs. From it, we can see that a large amount of memory is being utilized by geonear queries preceeding the oom. This issue is tracked in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-22224&quot; title=&quot;$near query uses unbounded memory&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-22224&quot;&gt;SERVER-22224&lt;/a&gt;. Please feel free to vote for it and watch it for updates.&lt;/p&gt;

&lt;p&gt;This stack&apos;s allocation begins increasing at 2017-12-06T16:05:29.011Z UTC and grows to above 50GB by the time of OOM.&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;   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;2017-12-06T14:01:57.005+0800 I -        [ftdc] heapProfile stack1239: { 0: &quot;tc_malloc&quot;, 1: &quot;mongo::mongoMalloc&quot;, 2: &quot;mongo::BSONObj::copy&quot;, 3: &quot;mongo::BSONObj::getOwned&quot;, 4: &quot;mongo::WorkingSetMember::makeObjOwnedIfNeeded&quot;, 5: &quot;mongo::NearStage::bufferNext&quot;, 6: &quot;mongo::NearStage::doWork&quot;, 7: &quot;mongo::PlanStage::work&quot;, 8: &quot;mongo::ProjectionStage::doWork&quot;, 9: &quot;mongo::PlanStage::work&quot;, 10: &quot;mongo::LimitStage::doWork&quot;, 11: &quot;mongo::PlanStage::work&quot;, 12: &quot;mongo::PlanExecutor::getNextImpl&quot;, 13: &quot;mongo::PlanExecutor::getNext&quot;, 14: &quot;mongo::Geo2dFindNearCmd::run&quot;, 15: &quot;mongo::Command::run&quot;, 16: &quot;mongo::Command::execCommand&quot;, 17: &quot;mongo::runCommands&quot;, 18: &quot;0x7f0f1c769392&quot;, 19: &quot;mongo::assembleResponse&quot;, 20: &quot;mongo::ServiceEntryPointMongod::_sessionLoop&quot;, 21: &quot;0x7f0f1c339c2d&quot;, 22: &quot;0x7f0f1d047242&quot;, 23: &quot;0x7f0f1a128851&quot;, 24: &quot;clone&quot; }&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;Until &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-22224&quot; title=&quot;$near query uses unbounded memory&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-22224&quot;&gt;SERVER-22224&lt;/a&gt; is resolved, I would suggest investigating steps to take on the application layer to mitigate this issue by reducing the number of concurrent geonear queries and ensuring appropriate indexes have been established.&lt;/p&gt;

&lt;p&gt;Kind regards,&lt;br/&gt;
Kelsey&lt;/p&gt;</comment>
                            <comment id="1753630" author="shawn001" created="Sat, 16 Dec 2017 02:37:58 +0000"  >&lt;p&gt;hi&lt;br/&gt;
all&lt;/p&gt;

&lt;p&gt;is there anything discovery?&lt;/p&gt;</comment>
                            <comment id="1744506" author="shawn001" created="Wed, 6 Dec 2017 18:41:10 +0000"  >&lt;p&gt;Hi @Kelsey&lt;/p&gt;

&lt;p&gt;the entire file named   &lt;span class=&quot;nobr&quot;&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/attachment/172532/172532_log.log&quot; title=&quot;log.log attached to SERVER-32180&quot;&gt;log.log&lt;sup&gt;&lt;img class=&quot;rendericon&quot; src=&quot;https://jira.mongodb.org/images/icons/link_attachment_7.gif&quot; height=&quot;7&quot; width=&quot;7&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/sup&gt;&lt;/a&gt;&lt;/span&gt;  has been  uploaded which since the restart to OOM and ensure there are no gaps in its coverage.&lt;/p&gt;

&lt;p&gt;the host configure:  128GB  Phyiscal mem and  11GB swap.&lt;/p&gt;</comment>
                            <comment id="1744462" author="thomas.schubert" created="Wed, 6 Dec 2017 18:07:54 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=shawn&quot; class=&quot;user-hover&quot; rel=&quot;shawn&quot;&gt;shawn&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;To clarify, we need to see all of the log messages since the restart with heapprofiling is enabled to see the relevant stack traces recorded by the heap profiler. Without these traces, we cannot continue to our investigation. These stacks may not be first recorded at particularly noteworthy times, so it&apos;s best to provide the complete files to allow us pull out relevant information as we look into this issue.&lt;/p&gt;

&lt;p&gt;Would you please upload &lt;b&gt;all&lt;/b&gt; mongod log files since the restart to OOM and ensure there are no gaps in its coverage so we can continue to investigate?&lt;/p&gt;

&lt;p&gt;Thank you,&lt;br/&gt;
Kelsey&lt;/p&gt;</comment>
                            <comment id="1744342" author="shawn001" created="Wed, 6 Dec 2017 17:06:23 +0000"  >&lt;p&gt;Hi Bruce Lucas&lt;/p&gt;

&lt;p&gt; &lt;span class=&quot;nobr&quot;&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/attachment/172509/172509_mongo-1207.zip&quot; title=&quot;mongo-1207.zip attached to SERVER-32180&quot;&gt;mongo-1207.zip&lt;sup&gt;&lt;img class=&quot;rendericon&quot; src=&quot;https://jira.mongodb.org/images/icons/link_attachment_7.gif&quot; height=&quot;7&quot; width=&quot;7&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/sup&gt;&lt;/a&gt;&lt;/span&gt;  this file of mongodb log was at the time of OOM&#12290;&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;</comment>
                            <comment id="1744304" author="bruce.lucas@10gen.com" created="Wed, 6 Dec 2017 16:56:26 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=shawn001&quot; class=&quot;user-hover&quot; rel=&quot;shawn001&quot;&gt;shawn001&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Thanks for uploading the data. Unfortunately the log file ends at 2017-12-06T12:59:59.850+0800, several hours before the OOM, so it is missing some crucial information for identifying the cause. Do you have additional log files that cover the entire time from the restart until the OOM?&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Bruce&lt;/p&gt;</comment>
                            <comment id="1744287" author="shawn001" created="Wed, 6 Dec 2017 16:47:36 +0000"  >&lt;p&gt;hi @thomas.schubert&lt;/p&gt;

&lt;p&gt; &lt;span class=&quot;nobr&quot;&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/attachment/172507/172507_diagnostic-new.tar.gz&quot; title=&quot;diagnostic-new.tar.gz attached to SERVER-32180&quot;&gt;diagnostic-new.tar.gz&lt;sup&gt;&lt;img class=&quot;rendericon&quot; src=&quot;https://jira.mongodb.org/images/icons/link_attachment_7.gif&quot; height=&quot;7&quot; width=&quot;7&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/sup&gt;&lt;/a&gt;&lt;/span&gt;   this file was  diagnostic.data after  mongod starts with  heapProfilingEnabled=true&lt;/p&gt;

&lt;p&gt; &lt;span class=&quot;nobr&quot;&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/attachment/172506/172506_mongolog.tar.gz&quot; title=&quot;mongolog.tar.gz attached to SERVER-32180&quot;&gt;mongolog.tar.gz&lt;sup&gt;&lt;img class=&quot;rendericon&quot; src=&quot;https://jira.mongodb.org/images/icons/link_attachment_7.gif&quot; height=&quot;7&quot; width=&quot;7&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/sup&gt;&lt;/a&gt;&lt;/span&gt;   this file was mongodb log after  mongod starts with  heapProfilingEnabled=true and mongpd was killed by oom killer&#12290;&lt;/p&gt;

&lt;p&gt;Thank you&lt;/p&gt;</comment>
                            <comment id="1743870" author="shawn001" created="Wed, 6 Dec 2017 06:12:08 +0000"  >&lt;p&gt;hi &#65292; @Kelsey T Schubert&lt;/p&gt;

&lt;p&gt;got it&lt;/p&gt;

&lt;p&gt;thank you &lt;/p&gt;</comment>
                            <comment id="1743825" author="thomas.schubert" created="Wed, 6 Dec 2017 03:29:51 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=shawn001&quot; class=&quot;user-hover&quot; rel=&quot;shawn001&quot;&gt;shawn001&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Thanks for reporting this issue. I see, proceeding the OOM events, some cursors are established with noTimeouts. Are you aware of queries these cursors are running?&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/172479/172479_cursors.png&quot; width=&quot;100%&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;To help us continue to investigate this issue, would you please restart the node with the following parameter enabled&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;   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;mongod --setParameter heapProfilingEnabled=true&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;After encountering the OOM again, would you please upload the following files:&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;An archive of the diagnostic.data&lt;/li&gt;
	&lt;li&gt;The complete mongod logs since enabling the heapProfiler&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;Thank you,&lt;br/&gt;
Kelsey&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="259355">SERVER-22224</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="172479" name="cursors.png" size="157695" author="kelsey.schubert@mongodb.com" created="Wed, 6 Dec 2017 03:28:34 +0000"/>
                            <attachment id="172507" name="diagnostic-new.tar.gz" size="10107284" author="shawn001" created="Wed, 6 Dec 2017 16:43:51 +0000"/>
                            <attachment id="172532" name="log.log" size="30675943" author="shawn001" created="Wed, 6 Dec 2017 18:40:59 +0000"/>
                            <attachment id="172509" name="mongo-1207.zip" size="71813" author="shawn001" created="Wed, 6 Dec 2017 17:05:06 +0000"/>
                            <attachment id="172506" name="mongolog.tar.gz" size="240385" author="shawn001" created="Wed, 6 Dec 2017 16:42:41 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 6 Dec 2017 03:29:51 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        6 years, 7 weeks, 1 day 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>backlog-server-pm</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            6 years, 7 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>bruce.lucas@mongodb.com</customfieldvalue>
            <customfieldvalue>kelsey.schubert@mongodb.com</customfieldvalue>
            <customfieldvalue>shawn001</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|htlnxr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|htd90f:</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[kelsey.schubert@mongodb.com]]></customfieldvalue>
    

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

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