<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:08:38 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-5356] mongos OOM</title>
                <link>https://jira.mongodb.org/browse/SERVER-5356</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;mongodb(cnf)+mongodb(db)+mongos&lt;br/&gt;
mongos 2.0.2 always OOM.&lt;br/&gt;
we must be restart it everyday.Because it hold memory and don&apos;t free them.&lt;/p&gt;</description>
                <environment>mongodb(cnf)+mongodb(db)+mongos</environment>
        <key id="33503">SERVER-5356</key>
            <summary>mongos OOM</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="1" iconUrl="https://jira.mongodb.org/images/icons/priorities/blocker.svg">Blocker - P1</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="4">Incomplete</resolution>
                                        <assignee username="randolph@mongodb.com">Randolph Tan</assignee>
                                    <reporter username="haishi26">guojiangyong</reporter>
                        <labels>
                            <label>mongos</label>
                    </labels>
                <created>Thu, 22 Mar 2012 01:58:26 +0000</created>
                <updated>Wed, 15 Aug 2012 14:24:12 +0000</updated>
                            <resolved>Tue, 10 Jul 2012 04:59:08 +0000</resolved>
                                    <version>2.0.2</version>
                                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="116090" author="ian@10gen.com" created="Thu, 3 May 2012 17:24:35 +0000"  >&lt;p&gt;@guojiangyong, can you possibly get these machines into MMS and also add some clarification to what kind of ops you are running on these machines?&lt;/p&gt;</comment>
                            <comment id="106110" author="renctan" created="Tue, 3 Apr 2012 17:13:01 +0000"  >&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;Would it be possible to run these machines on MMS (&lt;a href=&quot;http://wiki.mongodb.org/display/DOCS/MongoDB+Monitoring+Service&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://wiki.mongodb.org/display/DOCS/MongoDB+Monitoring+Service&lt;/a&gt;). It would also be very helpful if you describe what kind of operations you are running on these machines.&lt;/p&gt;</comment>
                            <comment id="105423" author="haishi26" created="Sat, 31 Mar 2012 03:55:11 +0000"  >&lt;p&gt;1.it is the physical memory usage.&lt;br/&gt;
  yellow is physical&apos;cache.&lt;br/&gt;
  usually the cache is used by mongodb.&lt;br/&gt;
  mongos leak memmory ,so it becameing little slowlly.&lt;br/&gt;
  at last oom.&lt;br/&gt;
2. 20-30 connections when it run oom&lt;br/&gt;
3. I don&apos;t know.&lt;br/&gt;
4.no&lt;br/&gt;
5.no swap partition.it only have 16G physical memory.&lt;/p&gt;
</comment>
                            <comment id="104826" author="renctan" created="Thu, 29 Mar 2012 16:38:05 +0000"  >&lt;p&gt;@guojiangyong - Some questions:&lt;/p&gt;

&lt;p&gt;1. What is the graph plotting? Is it the physical memory usage for the machine? or mongos? or mongod? or mongos + mongod?&lt;/p&gt;

&lt;p&gt;@patrick &amp;amp; @guojiangyong&lt;/p&gt;

&lt;p&gt;2. How many connections do you have when it run out of memory?&lt;br/&gt;
3. What are the kinds of task do you run on it? Are you running map reduce commands when it run out of memory?&lt;br/&gt;
4. Are you running this on MMS?&lt;br/&gt;
5. How big is your swap partition?&lt;/p&gt;</comment>
                            <comment id="104720" author="hersha" created="Thu, 29 Mar 2012 13:47:38 +0000"  >&lt;p&gt;edit: I think this is an overcommit issue let me fix that and see if it works better.&lt;/p&gt;

&lt;p&gt;I&apos;m having the same problem but with a capped collection. My system has 16GB of ram and the collection is set to 8GB with a resulting 3.5GB of indexes. This should fit in memory just fine and does for about 12 hours. Then it gets OOM&apos;d. Typical load is much higher during the day then at night and runs fine under load. The system is under relatively light load when it get OOM&apos;d. Heck I was shrinking the size of the capped collection to 8GB to see if a smaller collection would fix it and was using greater than 100% of memory somehow and everything still ran fine.&lt;/p&gt;

&lt;p&gt;CentOS 6 64-bit&lt;br/&gt;
mongodb 2.0.2&lt;br/&gt;
16gb RAM&lt;br/&gt;
Not in replica set yet.&lt;/p&gt;</comment>
                            <comment id="103442" author="haishi26" created="Mon, 26 Mar 2012 06:08:09 +0000"  >&lt;p&gt;First thank you very much!&lt;br/&gt;
These servers are running at product line.&lt;br/&gt;
centos 5.4 (64bit)&lt;br/&gt;
not do replica sets&lt;br/&gt;
server1 mongod(shard db,port:27018)+ mongodb(config,port:27019)&lt;br/&gt;
server2 mongod(shard db,port:27018)+ mongodb(config,port:27019)&lt;br/&gt;
server3 mongod(shard db,port:27018)+ mongodb(config,port:27019) + mongos(prot:27017)&lt;br/&gt;
server3 mongod(shard db,port:27018)+ mongos(prot:27017)&lt;/p&gt;

&lt;p&gt;strace -c -f -p monogs PID&lt;/p&gt;


&lt;p&gt;% time     seconds  usecs/call     calls    errors syscall&lt;br/&gt;
------ ----------- ----------- --------- --------- ----------------&lt;br/&gt;
 73.96    2.574478         529      4863         0  recvfrom&lt;br/&gt;
 16.02    0.557728         307      1814         0  select&lt;br/&gt;
  9.71    0.337935       24138        14         0  nanosleep&lt;br/&gt;
  0.09    0.002998        2998         1         0  restart_syscall&lt;br/&gt;
  0.06    0.002256           1      1945         0  sendto&lt;br/&gt;
  0.04    0.001302           1      1939         0  write&lt;br/&gt;
  0.03    0.001169           1       966         0  clone&lt;br/&gt;
  0.03    0.001027           1       973         0  close&lt;br/&gt;
  0.02    0.000640           0      2898         0  setsockopt&lt;br/&gt;
  0.01    0.000428           1       417       109  futex&lt;br/&gt;
  0.01    0.000370           0       966         0  accept&lt;br/&gt;
  0.01    0.000236           0      1932         0  getsockopt&lt;br/&gt;
  0.00    0.000119           0       966         0  getrlimit&lt;br/&gt;
  0.00    0.000107           0       966         0  set_robust_list&lt;br/&gt;
------ ----------- ----------- --------- --------- ----------------&lt;br/&gt;
100.00    3.480793                 20660       109 total&lt;/p&gt;</comment>
                            <comment id="101693" author="renctan" created="Thu, 22 Mar 2012 22:50:54 +0000"  >&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;I noticed that you set the Tests Written field as Complete. Would you mind attaching the test?&lt;/p&gt;

&lt;p&gt;Can you also provide more details about your environment?:&lt;/p&gt;

&lt;p&gt;1. Number of shards (and whether they are replica sets)&lt;br/&gt;
2. Number of config servers&lt;br/&gt;
3. OS&lt;/p&gt;

&lt;p&gt;If you don&apos;t have the test, can you describe the type of load you have in your system? For example you run several concurrrent map reduce jobs, etc.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="15486" name="mornitor.JPG" size="23305" author="haishi26" created="Thu, 22 Mar 2012 01:58:27 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>7.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 22 Mar 2012 22:50:54 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        11 years, 41 weeks, 6 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>
                            11 years, 41 weeks, 6 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="10020"><![CDATA[Linux]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>haishi26</customfieldvalue>
            <customfieldvalue>ian@mongodb.com</customfieldvalue>
            <customfieldvalue>hersha</customfieldvalue>
            <customfieldvalue>randolph@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hro8zj:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>7489</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_10166" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Tests Written</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10154"><![CDATA[Complete]]></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|hsn5i7:</customfieldvalue>

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