<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:02:27 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-43170] MongoDB - Chat DB get stuck some time and repeat inifinitely when have to too many collections (800.000)</title>
                <link>https://jira.mongodb.org/browse/SERVER-43170</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;My DB get stuck some time about 6-10 second and repeat again inifinitely.&lt;/p&gt;

&lt;p&gt;My DB design model:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;DBName:&lt;br/&gt;
+ chatlogextension1&lt;/li&gt;
	&lt;li&gt;Collection names are mongo objectIds represent user ids - 200.000 collections per DB:&lt;br/&gt;
5d21f0b2383cb27bfc908f3b&lt;br/&gt;
5d21f0c2383cb27bfc908f72&lt;br/&gt;
5d21f0dd383cb27bfc908fce&lt;br/&gt;
5d21f0e9383cb27bfc909001&lt;br/&gt;
5d21f10d383cb27bfc9090b1&lt;br/&gt;
5d21f114383cb27bfc9090e1&lt;br/&gt;
5d21f12d383cb27bfc909143&lt;br/&gt;
...&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;And i have about 5 chat DBs:&#160;chatlogextension1,&#160;chatlogextension2,...chatlogextension5.&lt;br/&gt;
When i query to these chat DBs, chat DB get stuck about per one minutes and repeat.&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;While other DB is not effected.&lt;/li&gt;
	&lt;li&gt;This is my OS Resources:&lt;br/&gt;
+ CPU: everage 15%&lt;br/&gt;
+&#160;RAM: everage 72% (92/128 GB)&lt;br/&gt;
+ Max open files:&#160;1000000 (ulimit -n)&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;May MongoDB handle about 800.000 collections or wiretiger&#160; can handle 800.000 files?&lt;/p&gt;</description>
                <environment></environment>
        <key id="917449">SERVER-43170</key>
            <summary>MongoDB - Chat DB get stuck some time and repeat inifinitely when have to too many collections (800.000)</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="9">Done</resolution>
                                        <assignee username="daniel.hatcher@mongodb.com">Danny Hatcher</assignee>
                                    <reporter username="developer.doanhngo@gmail.com">Doanh Ng&#244; V&#259;n</reporter>
                        <labels>
                    </labels>
                <created>Thu, 5 Sep 2019 09:28:38 +0000</created>
                <updated>Wed, 11 Sep 2019 02:41:26 +0000</updated>
                            <resolved>Mon, 9 Sep 2019 18:34:05 +0000</resolved>
                                    <version>3.6.1</version>
                    <version>3.6 Required</version>
                                                    <component>Performance</component>
                    <component>WiredTiger</component>
                                        <votes>0</votes>
                                    <watches>7</watches>
                                                                                                                <comments>
                            <comment id="2415856" author="developer.doanhngo@gmail.com" created="Wed, 11 Sep 2019 02:41:26 +0000"  >&lt;p&gt;Thank for your great response!&lt;/p&gt;</comment>
                            <comment id="2413313" author="daniel.hatcher" created="Mon, 9 Sep 2019 18:33:57 +0000"  >&lt;p&gt;Nothing stands out at me as an obvious bottleneck so it is likely that you are simply running into the limitations of the maximum number of open files that a &lt;tt&gt;mongod&lt;/tt&gt; can reasonable handle. In situations like this, I recommend a re-architecture of your schema so that you are are not using so many collections in a short period of time. Additionally, you may wish to look into &lt;a href=&quot;https://docs.mongodb.com/manual/sharding/index.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Sharding&lt;/a&gt; as it offers a relatively easy way to scare horizontally so any given process is not dealing with a million files. Finally, I recommend upgrading to the latest version of 3.6 (3.6.14 at the time of this comment) as we&apos;ve made many performance improvements that may help your situation.&lt;/p&gt;

&lt;p&gt;As this does not look like a bug in MongoDB, I&apos;m going to close this ticket. If you need further assistance, I encourage you to ask our community by posting on the &lt;a href=&quot;https://groups.google.com/group/mongodb-user&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;mongodb-user group&lt;/a&gt; or on &lt;a href=&quot;https://stackoverflow.com/questions/tagged/mongodb&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Stack Overflow with the &lt;tt&gt;mongodb&lt;/tt&gt; tag&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="2412253" author="developer.doanhngo@gmail.com" created="Mon, 9 Sep 2019 07:19:29 +0000"  >&lt;p&gt;the open files number my mongodb use is 728968 now&lt;/p&gt;</comment>
                            <comment id="2410237" author="developer.doanhngo@gmail.com" created="Fri, 6 Sep 2019 10:18:08 +0000"  >&lt;p&gt;I have update 3 log files at the time&#160;chatlogextension dbs are stuck.&lt;/p&gt;</comment>
                            <comment id="2410011" author="developer.doanhngo@gmail.com" created="Fri, 6 Sep 2019 03:24:01 +0000"  >&lt;p&gt;Thank for your reply! because Jira not allow to upload greater than 150MB size so i uploaded to my google drive.&#160;&lt;br/&gt;
 This is my diagnostic.data folder - zip file drive link:&#160;&lt;a href=&quot;https://drive.google.com/file/d/1Z2Dfxn7PTzczFQcrt69p9-cEXfxb6bz8/view?usp=sharing&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://drive.google.com/file/d/1Z2Dfxn7PTzczFQcrt69p9-cEXfxb6bz8/view?usp=sharing&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2409039" author="daniel.hatcher" created="Thu, 5 Sep 2019 15:28:29 +0000"  >&lt;p&gt;Having that many files open can cause problems but if you provide your &quot;diagnostic.data&quot; folder for the Primary node(s) I can take a look.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="229845" name="mongo_stuck.log" size="194863" author="developer.doanhngo@gmail.com" created="Fri, 6 Sep 2019 10:16:58 +0000"/>
                            <attachment id="229846" name="mongo_stuck2.log" size="83471" author="developer.doanhngo@gmail.com" created="Fri, 6 Sep 2019 10:16:58 +0000"/>
                            <attachment id="229847" name="mongo_stuck3.log" size="110858" author="developer.doanhngo@gmail.com" created="Fri, 6 Sep 2019 10:16:58 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>6.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 5 Sep 2019 15:28:29 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        4 years, 22 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>developer.doanhngo@gmail.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            4 years, 22 weeks, 1 day 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>daniel.hatcher@mongodb.com</customfieldvalue>
            <customfieldvalue>developer.doanhngo@gmail.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hvommv:</customfieldvalue>

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

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

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