<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:20:43 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-9534] mongos v2.4.0 eats all memory, possible memory leak</title>
                <link>https://jira.mongodb.org/browse/SERVER-9534</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Mongos consumes 14g+ of the 16g physical memory, smaps file is attached.&lt;br/&gt;
The behavior is very similar to that of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-6354&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.mongodb.org/browse/SERVER-6354&lt;/a&gt; and &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-6785&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.mongodb.org/browse/SERVER-6785&lt;/a&gt; , but both have been resolved before 2.4.0.&lt;/p&gt;

&lt;p&gt;Detail of mongos version:&lt;br/&gt;
$mongos --version&lt;br/&gt;
MongoS version 2.4.0 starting: pid=31557 port=27017 64-bit host=xxxx (--help for usage)&lt;br/&gt;
git version: ce2d666c04b4a80af58e8bbb3388b0680e8cfeb6&lt;br/&gt;
build sys info: Linux ip-10-2-29-40 2.6.21.7-2.ec2.v1.2.fc8xen #1 SMP Fri Nov 20 17:48:28 EST 2009 x86_64 BOOST_LIB_VERSION=1_49&lt;/p&gt;


&lt;p&gt;$ ldd mongos&lt;br/&gt;
        libpthread.so.0 =&amp;gt; /lib64/libpthread.so.0 (0x0000003f18800000)&lt;br/&gt;
        librt.so.1 =&amp;gt; /lib64/librt.so.1 (0x0000003f1c800000)&lt;br/&gt;
        libstdc+&lt;ins&gt;.so.6 =&amp;gt; /usr/lib64/libstdc&lt;/ins&gt;+.so.6 (0x0000003f1bc00000)&lt;br/&gt;
        libm.so.6 =&amp;gt; /lib64/libm.so.6 (0x0000003f18400000)&lt;br/&gt;
        libgcc_s.so.1 =&amp;gt; /lib64/libgcc_s.so.1 (0x0000003f1b800000)&lt;br/&gt;
        libc.so.6 =&amp;gt; /lib64/libc.so.6 (0x0000003f17c00000)&lt;br/&gt;
        /lib64/ld-linux-x86-64.so.2 (0x0000003f16c00000)&lt;/p&gt;</description>
                <environment>linux </environment>
        <key id="73909">SERVER-9534</key>
            <summary>mongos v2.4.0 eats all memory, possible memory leak</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="-1">Unassigned</assignee>
                                    <reporter username="renantsec">Yu Feng</reporter>
                        <labels>
                    </labels>
                <created>Thu, 2 May 2013 07:03:50 +0000</created>
                <updated>Fri, 10 May 2013 11:34:14 +0000</updated>
                            <resolved>Fri, 10 May 2013 11:27:05 +0000</resolved>
                                    <version>2.4.0</version>
                                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>8</watches>
                                                                                                                <comments>
                            <comment id="332719" author="judotens@gmail.com" created="Fri, 10 May 2013 11:34:14 +0000"  >&lt;p&gt;i&apos;ve same issue with Yu Feng and tried the 2.4.3 for last 4 days. it solved!&lt;/p&gt;

&lt;p&gt;thanks&lt;/p&gt;</comment>
                            <comment id="332712" author="tad" created="Fri, 10 May 2013 11:25:03 +0000"  >&lt;p&gt;Hi Yu,&lt;/p&gt;

&lt;p&gt;Thanks for letting us know!&lt;/p&gt;

&lt;p&gt;Tad&lt;/p&gt;</comment>
                            <comment id="332707" author="renantsec" created="Fri, 10 May 2013 11:20:19 +0000"  >&lt;p&gt;The memory of version 2.4.3 stayed stable after 3 days of running, this issue may be closed.&lt;/p&gt;</comment>
                            <comment id="327429" author="renantsec" created="Fri, 3 May 2013 10:47:59 +0000"  >&lt;p&gt;Thanks, Tad. I&apos;ll try the new versions and report the result here.&lt;/p&gt;</comment>
                            <comment id="326528" author="christophe@socialmoov.com" created="Thu, 2 May 2013 12:57:20 +0000"  >&lt;p&gt;ok I do that but, in 2.4.1 I have the same memory leak than Yu Feng, I will follow the 2 problem&lt;/p&gt;</comment>
                            <comment id="326523" author="tad" created="Thu, 2 May 2013 12:50:12 +0000"  >&lt;p&gt;Hi Christophe,&lt;/p&gt;

&lt;p&gt;Thanks for the stack trace!&lt;/p&gt;

&lt;p&gt;This looks like a separate problem, and could be new.  The stack trace shows that our V8 interface code is trying to allocate 128 MB for an object, which would never have worked in any version of MongoDB.&lt;/p&gt;

&lt;p&gt;Can you open a separate ticket for this problem and include information on the operations that were going on when the problem happened?  Steps to reproduce would be ideal, but any information on how to get mongod into this state would be very helpful.&lt;/p&gt;

&lt;p&gt;Thank you!&lt;/p&gt;

&lt;p&gt;Tad&lt;/p&gt;</comment>
                            <comment id="326500" author="christophe@socialmoov.com" created="Thu, 2 May 2013 12:04:04 +0000"  >&lt;p&gt;I have the same behavior : mongod consumme 100% of my RAM (32g) and then the server swap and oom killer kill mongod. I use mongo 2.4.1 (no shard, only replica set).&lt;br/&gt;
Previously I used 2.2.3 and didn&apos;t have any problem. I downgrade to 2.2.3 and server/RAM is ok&lt;/p&gt;


&lt;p&gt;I try 2.4.3 but after some hours mongod crash with another error : &lt;/p&gt;

&lt;p&gt;Thu May  2 13:46:03.265 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn116&amp;#93;&lt;/span&gt; Assertion: 13548:BufBuilder attempted to grow() to 134217728 bytes, past the 64MB limit.&lt;br/&gt;
 0xdcf361 0xd90a1b 0x6e6bc0 0xd70e9e 0xd7074d 0xd713ef 0xd700fc 0xd70a9e 0xd713ef 0xd7198e 0xd64831 0x869d7a 0x86bb00 0x8d236a 0x8d5535 0x8d6592 0xa7c97b 0xa80360 0x9f44d4 0x9f57e2 &lt;br/&gt;
  /usr/bin/mongod(_ZN5mongo15printStackTraceERSo+0x21) &lt;span class=&quot;error&quot;&gt;&amp;#91;0xdcf361&amp;#93;&lt;/span&gt;&lt;br/&gt;
  /usr/bin/mongod(_ZN5mongo11msgassertedEiPKc+0x9b) &lt;span class=&quot;error&quot;&gt;&amp;#91;0xd90a1b&amp;#93;&lt;/span&gt;&lt;br/&gt;
  /usr/bin/mongod(_ZN5mongo11_BufBuilderINS_16TrivialAllocatorEE15grow_reallocateEv+0xf0) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x6e6bc0&amp;#93;&lt;/span&gt;&lt;br/&gt;
  /usr/bin/mongod(_ZN5mongo7V8Scope16v8ToMongoElementERNS_14BSONObjBuilderERKSsN2v86HandleINS5_5ValueEEEiPNS_7BSONObjE+0xb3e) &lt;span class=&quot;error&quot;&gt;&amp;#91;0xd70e9e&amp;#93;&lt;/span&gt;&lt;br/&gt;
  /usr/bin/mongod(_ZN5mongo7V8Scope16v8ToMongoElementERNS_14BSONObjBuilderERKSsN2v86HandleINS5_5ValueEEEiPNS_7BSONObjE+0x3ed) &lt;span class=&quot;error&quot;&gt;&amp;#91;0xd7074d&amp;#93;&lt;/span&gt;&lt;br/&gt;
  /usr/bin/mongod(_ZN5mongo7V8Scope9v8ToMongoEN2v86HandleINS1_6ObjectEEEi+0x27f) &lt;span class=&quot;error&quot;&gt;&amp;#91;0xd713ef&amp;#93;&lt;/span&gt;&lt;br/&gt;
  /usr/bin/mongod(_ZN5mongo7V8Scope15v8ToMongoObjectERNS_14BSONObjBuilderERKSsN2v86HandleINS5_5ValueEEEiPNS_7BSONObjE+0x2bc) &lt;span class=&quot;error&quot;&gt;&amp;#91;0xd700fc&amp;#93;&lt;/span&gt;&lt;br/&gt;
  /usr/bin/mongod(_ZN5mongo7V8Scope16v8ToMongoElementERNS_14BSONObjBuilderERKSsN2v86HandleINS5_5ValueEEEiPNS_7BSONObjE+0x73e) &lt;span class=&quot;error&quot;&gt;&amp;#91;0xd70a9e&amp;#93;&lt;/span&gt;&lt;br/&gt;
  /usr/bin/mongod(_ZN5mongo7V8Scope9v8ToMongoEN2v86HandleINS1_6ObjectEEEi+0x27f) &lt;span class=&quot;error&quot;&gt;&amp;#91;0xd713ef&amp;#93;&lt;/span&gt;&lt;br/&gt;
  /usr/bin/mongod(_ZN5mongo7V8Scope9getObjectEPKc+0xbe) &lt;span class=&quot;error&quot;&gt;&amp;#91;0xd7198e&amp;#93;&lt;/span&gt;&lt;br/&gt;
  /usr/bin/mongod(_ZN5mongo11PooledScope9getObjectEPKc+0x11) &lt;span class=&quot;error&quot;&gt;&amp;#91;0xd64831&amp;#93;&lt;/span&gt;&lt;br/&gt;
...&lt;/p&gt;</comment>
                            <comment id="326486" author="tad" created="Thu, 2 May 2013 11:44:33 +0000"  >&lt;p&gt;There were several memory-related issues addressed in version 2.4.2, including &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-8720&quot; title=&quot;Memory leak in DBClientReplicaSet::slaveConn&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-8720&quot;&gt;&lt;del&gt;SERVER-8720&lt;/del&gt;&lt;/a&gt; and &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-9139&quot; title=&quot;cursor leak in mongos of unsharded cursors&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-9139&quot;&gt;&lt;del&gt;SERVER-9139&lt;/del&gt;&lt;/a&gt;, both of which could cause mongos to consume excessive memory.&lt;/p&gt;

&lt;p&gt;Can you try version 2.4.3, which includes all of the 2.4.2 fixes and is the current 2.4 version, and see if your problem is resolved?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="66355">SERVER-8720</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="69831">SERVER-9139</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="26550" name="31313.smaps" size="363668" author="renantsec" created="Thu, 2 May 2013 07:03:50 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>8.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 2 May 2013 11:44:33 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        10 years, 40 weeks, 5 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_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>ian@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            10 years, 40 weeks, 5 days 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>christophe@socialmoov.com</customfieldvalue>
            <customfieldvalue>judotens@gmail.com</customfieldvalue>
            <customfieldvalue>tad</customfieldvalue>
            <customfieldvalue>renantsec</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrmux3:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>51551</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;There is only one db which has two shards with each shard backed by 4 replica.&lt;br/&gt;
Aggregation jobs which uses the new aggregation framework runs continuously, several per minute. There are also normal upserts and finds with similar qps that of aggregations. Under this job load, it takes more than one month for the mongos to reach a RES memory of 14g+ with 30g+ of VIRT.&lt;br/&gt;
No authentication is used.&lt;/p&gt;</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|hrjcdj:</customfieldvalue>

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