<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:12:33 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-6734] Mongod give error &quot;too many opens file&quot; </title>
                <link>https://jira.mongodb.org/browse/SERVER-6734</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;hi,&lt;/p&gt;

&lt;p&gt;We have following setup:&lt;br/&gt;
mongos        :1&lt;br/&gt;
config server :3&lt;br/&gt;
mongod (shards):10&lt;/p&gt;

&lt;p&gt;all shards are journal enabled.&lt;/p&gt;

&lt;p&gt;Mongod1 become non-responsive. Logs show error &quot;too many opens files&quot;.&lt;br/&gt;
At same time mongos also become non-responsive. The resident memory utilization of mongod1 was 5.5GB.&lt;/p&gt;

&lt;p&gt;Below are the logs of that time:&lt;br/&gt;
Wed Aug  8 15:10:15 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; Listener: accept() returns -1 errno:24 Too many open files&lt;br/&gt;
Wed Aug  8 15:10:15 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; ERROR: Out of file descriptors. Waiting one second before trying to accept more connections.&lt;br/&gt;
Wed Aug  8 15:10:16 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; Listener: accept() returns -1 errno:24 Too many open files&lt;br/&gt;
Wed Aug  8 15:10:16 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; ERROR: Out of file descriptors. Waiting one second before trying to accept more connections.&lt;br/&gt;
Wed Aug  8 15:10:17 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; Listener: accept() returns -1 errno:24 Too many open files&lt;br/&gt;
Wed Aug  8 15:10:17 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; ERROR: Out of file descriptors. Waiting one second before trying to accept more connections.&lt;br/&gt;
Wed Aug  8 15:10:18 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; Listener: accept() returns -1 errno:24 Too many open files&lt;/p&gt;

&lt;p&gt;Wed Aug  8 15:19:10 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn11&amp;#93;&lt;/span&gt; Accessing: 00070613 for the first time&lt;br/&gt;
Wed Aug  8 15:19:10 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn11&amp;#93;&lt;/span&gt; couldn&apos;t open /u01/shard1/00070613.0 errno:24 Too many open files&lt;br/&gt;
Wed Aug  8 15:19:10 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn11&amp;#93;&lt;/span&gt; User Assertion: 10085:can&apos;t map file memory&lt;br/&gt;
Wed Aug  8 15:19:10 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn8&amp;#93;&lt;/span&gt; Accessing: 00070613 for the first time&lt;br/&gt;
Wed Aug  8 15:19:10 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn11&amp;#93;&lt;/span&gt; command admin.$cmd command: &lt;/p&gt;
{ listDatabases: 1.0 }
&lt;p&gt; ntoreturn:1 exception: can&apos;t map file memory code:10085 reslen:126 138744ms&lt;br/&gt;
Wed Aug  8 15:19:10 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn11&amp;#93;&lt;/span&gt; Socket recv() conn closed? 192.168.11.103:33821&lt;br/&gt;
Wed Aug  8 15:19:10 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn11&amp;#93;&lt;/span&gt; SocketException: remote: 192.168.11.103:33821 error: 9001 socket exception &lt;span class=&quot;error&quot;&gt;&amp;#91;0&amp;#93;&lt;/span&gt; server &lt;span class=&quot;error&quot;&gt;&amp;#91;192.168.11.103:33821&amp;#93;&lt;/span&gt;&lt;br/&gt;
Wed Aug  8 15:19:10 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn8&amp;#93;&lt;/span&gt; couldn&apos;t open /u01/shard1/00070613.1 errno:24 Too many open files&lt;br/&gt;
Wed Aug  8 15:19:10 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn8&amp;#93;&lt;/span&gt; User Assertion: 10085:can&apos;t map file memory&lt;br/&gt;
Wed Aug  8 15:19:10 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn8&amp;#93;&lt;/span&gt; command admin.$cmd command: &lt;/p&gt;
{ listDatabases: 1 }
&lt;p&gt; ntoreturn:1 exception: can&apos;t map file memory code:10085 reslen:126 159834ms&lt;br/&gt;
Wed Aug  8 15:19:10 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn8&amp;#93;&lt;/span&gt; Socket recv() conn closed? 192.168.11.103:33434&lt;/p&gt;

&lt;p&gt;Please let us know of any solution.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Jitendra Verma&lt;/p&gt;</description>
                <environment>linux OEL</environment>
        <key id="46593">SERVER-6734</key>
            <summary>Mongod give error &quot;too many opens file&quot; </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="9">Done</resolution>
                                        <assignee username="barrie">Barrie Segal</assignee>
                                    <reporter username="jitendra908">jitendra</reporter>
                        <labels>
                    </labels>
                <created>Wed, 8 Aug 2012 16:38:06 +0000</created>
                <updated>Thu, 2 Mar 2017 12:46:03 +0000</updated>
                            <resolved>Wed, 8 Aug 2012 16:53:15 +0000</resolved>
                                    <version>2.0.3</version>
                                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="151730" author="barrie" created="Wed, 8 Aug 2012 20:35:36 +0000"  >&lt;p&gt;Jitendra,&lt;/p&gt;

&lt;p&gt;Can you please post on the &lt;a href=&quot;https://groups.google.com/forum/?fromgroups#!forum/mongodb-user&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;mongodb user group&lt;/a&gt; so we can troubleshoot your issue there? Thanks.&lt;/p&gt;

&lt;p&gt;Barrie &lt;/p&gt;</comment>
                            <comment id="151691" author="jitendra908" created="Wed, 8 Aug 2012 19:05:17 +0000"  >&lt;p&gt;We did try above things. Although our file descriptor setting was low(Default: 1024). We increased it and ran mongo instances again.&lt;br/&gt;
Now when we issue &quot;show dbs&quot; from mongod1, it returns output properly.&lt;br/&gt;
But issuing same command from mongos returns failure, &quot;assertion, /cant map file memory&quot;.&lt;/p&gt;

&lt;p&gt;Another problem we are facing is: MongoD processes taking very high resident memory (5.5GB to 6.0 GB)&lt;br/&gt;
Why mongod&apos;s taking so much memory?&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Jitendra Verma&lt;/p&gt;</comment>
                            <comment id="151634" author="scotthernandez" created="Wed, 8 Aug 2012 16:53:15 +0000"  >&lt;p&gt;Please see the docs here : &lt;a href=&quot;http://www.mongodb.org/display/DOCS/Too+Many+Open+Files&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://www.mongodb.org/display/DOCS/Too+Many+Open+Files&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="50077">SERVER-6987</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 8 Aug 2012 16:53:15 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        11 years, 28 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>m00dy1</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            11 years, 28 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="10020"><![CDATA[Linux]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>barrie</customfieldvalue>
            <customfieldvalue>jitendra908</customfieldvalue>
            <customfieldvalue>scotthernandez</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrns7b:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>10710</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>
                                

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

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