<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:12:40 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-6776] Mongos take 100 % cpu intermittently</title>
                <link>https://jira.mongodb.org/browse/SERVER-6776</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;hi,&lt;/p&gt;

&lt;p&gt;Mongos take 100% cpu intermittently.&lt;/p&gt;

&lt;p&gt;Setup : mongos -1 , mongod (shard) - 10 , config server - 3&lt;/p&gt;

&lt;p&gt;I have attached mongos logs.&lt;/p&gt;

&lt;p&gt;Please tell me why does mongos take 100% cpu.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Jitendra R Verma&lt;/p&gt;


</description>
                <environment>linux OEL</environment>
        <key id="47340">SERVER-6776</key>
            <summary>Mongos take 100 % cpu intermittently</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="5">Cannot Reproduce</resolution>
                                        <assignee username="spencer@mongodb.com">Spencer Brody</assignee>
                                    <reporter username="jitendra908">jitendra</reporter>
                        <labels>
                            <label>mongos</label>
                    </labels>
                <created>Thu, 16 Aug 2012 15:50:06 +0000</created>
                <updated>Fri, 8 Mar 2013 15:56:09 +0000</updated>
                            <resolved>Fri, 21 Sep 2012 18:14:10 +0000</resolved>
                                    <version>2.0.3</version>
                                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="157112" author="spencer" created="Mon, 27 Aug 2012 19:24:03 +0000"  >&lt;p&gt;HI Jitendra,&lt;br/&gt;
Do you have the mongod logs from when this happened on your mongod?&lt;/p&gt;

&lt;p&gt;It would be very helpful for our ability to debug this to get &quot;mongostat --discover&quot; run against the mongos and &quot;iostat -x 2&quot; run on any machines experiencing the high cpu usage the next time this happens.&lt;/p&gt;

&lt;p&gt;You may also want to try upgrading to 2.0.7 to see if that helps.&lt;/p&gt;</comment>
                            <comment id="155773" author="jitendra908" created="Wed, 22 Aug 2012 15:37:09 +0000"  >&lt;p&gt;hi , &lt;/p&gt;

&lt;p&gt;Now one of the mongod instances took 100% CPU.&lt;/p&gt;

&lt;p&gt;Below mongod serverStatus:&lt;/p&gt;

&lt;p&gt;&amp;gt; db.serverStatus()&lt;br/&gt;
{&lt;br/&gt;
        &quot;host&quot; : &quot;CSS-FU-2:55000&quot;,&lt;br/&gt;
        &quot;version&quot; : &quot;2.0.3-rc0&quot;,&lt;br/&gt;
        &quot;process&quot; : &quot;mongod&quot;,&lt;br/&gt;
        &quot;uptime&quot; : 1732,&lt;br/&gt;
        &quot;uptimeEstimate&quot; : 1703,&lt;br/&gt;
        &quot;localTime&quot; : ISODate(&quot;2012-08-22T14:50:53.776Z&quot;),&lt;br/&gt;
        &quot;globalLock&quot; : {&lt;br/&gt;
                &quot;totalTime&quot; : 1732672663,&lt;br/&gt;
                &quot;lockTime&quot; : 337955639,&lt;br/&gt;
                &quot;ratio&quot; : 0.1950487511096607,&lt;br/&gt;
                &quot;currentQueue&quot; : &lt;/p&gt;
{
                        &quot;total&quot; : 0,
                        &quot;readers&quot; : 0,
                        &quot;writers&quot; : 0
                }
&lt;p&gt;,&lt;br/&gt;
                &quot;activeClients&quot; : &lt;/p&gt;
{
                        &quot;total&quot; : 0,
                        &quot;readers&quot; : 0,
                        &quot;writers&quot; : 0
                }
&lt;p&gt;        },&lt;br/&gt;
        &quot;mem&quot; : &lt;/p&gt;
{
                &quot;bits&quot; : 64,
                &quot;resident&quot; : 5574,
                &quot;virtual&quot; : 521112,
                &quot;supported&quot; : true,
                &quot;mapped&quot; : 260272,
                &quot;mappedWithJournal&quot; : 520544
        }
&lt;p&gt;,&lt;br/&gt;
        &quot;connections&quot; : &lt;/p&gt;
{
                &quot;current&quot; : 19,
                &quot;available&quot; : 19981
        }
&lt;p&gt;,&lt;br/&gt;
        &quot;extra_info&quot; : &lt;/p&gt;
{
                &quot;note&quot; : &quot;fields vary by platform&quot;,
                &quot;heap_usage_bytes&quot; : 543856,
                &quot;page_faults&quot; : 4805
        }
&lt;p&gt;,&lt;br/&gt;
        &quot;indexCounters&quot; : {&lt;br/&gt;
                &quot;btree&quot; : &lt;/p&gt;
{
                        &quot;accesses&quot; : 67,
                        &quot;hits&quot; : 67,
                        &quot;misses&quot; : 0,
                        &quot;resets&quot; : 0,
                        &quot;missRatio&quot; : 0
                }
&lt;p&gt;        },&lt;br/&gt;
        &quot;backgroundFlushing&quot; : &lt;/p&gt;
{
                &quot;flushes&quot; : 28,
                &quot;total_ms&quot; : 3063,
                &quot;average_ms&quot; : 109.39285714285714,
                &quot;last_ms&quot; : 698,
                &quot;last_finished&quot; : ISODate(&quot;2012-08-22T14:50:01.908Z&quot;)
        }
&lt;p&gt;,&lt;br/&gt;
        &quot;cursors&quot; : &lt;/p&gt;
{
                &quot;totalOpen&quot; : 0,
                &quot;clientCursors_size&quot; : 0,
                &quot;timedOut&quot; : 0
        }
&lt;p&gt;,&lt;br/&gt;
        &quot;network&quot; : &lt;/p&gt;
{
                &quot;bytesIn&quot; : 603602034,
                &quot;bytesOut&quot; : 371782,
                &quot;numRequests&quot; : 4041
        }
&lt;p&gt;,&lt;br/&gt;
        &quot;opcounters&quot; : &lt;/p&gt;
{
                &quot;insert&quot; : 1619,
                &quot;query&quot; : 1,
                &quot;update&quot; : 0,
                &quot;delete&quot; : 1,
                &quot;getmore&quot; : 0,
                &quot;command&quot; : 2422
        }
&lt;p&gt;,&lt;br/&gt;
        &quot;asserts&quot; : &lt;/p&gt;
{
                &quot;regular&quot; : 0,
                &quot;warning&quot; : 0,
                &quot;msg&quot; : 0,
                &quot;user&quot; : 0,
                &quot;rollovers&quot; : 0
        }
&lt;p&gt;,&lt;br/&gt;
        &quot;writeBacksQueued&quot; : false,&lt;br/&gt;
        &quot;dur&quot; : {&lt;br/&gt;
                &quot;commits&quot; : 941,&lt;br/&gt;
                &quot;journaledMB&quot; : 0.024576,&lt;br/&gt;
                &quot;writeToDataFilesMB&quot; : 0.062181,&lt;br/&gt;
                &quot;compression&quot; : 0.9999593115514506,&lt;br/&gt;
                &quot;commitsInWriteLock&quot; : 0,&lt;br/&gt;
                &quot;earlyCommits&quot; : 0,&lt;br/&gt;
                &quot;timeMs&quot; : &lt;/p&gt;
{
                        &quot;dt&quot; : 3000,
                        &quot;prepLogBuffer&quot; : 0,
                        &quot;writeToJournal&quot; : 13,
                        &quot;writeToDataFiles&quot; : 0,
                        &quot;remapPrivateView&quot; : 0
                }
&lt;p&gt;,&lt;br/&gt;
                &quot;journalCommitIntervalMs&quot; : 2&lt;br/&gt;
        },&lt;br/&gt;
        &quot;ok&quot; : 1&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;Please tell me, why mongod cpu go 100% ?&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Jitendra R Verma&lt;/p&gt;</comment>
                            <comment id="154449" author="spencer" created="Fri, 17 Aug 2012 17:33:10 +0000"  >&lt;p&gt;Unfortunately there isn&apos;t a lot to go on in the mongos logs you attached.  Without more information there&apos;s not much we can do to diagnose this.  Is this still happening?  Can you not run mongostat --discover against the problematic mongos (and take note of the cpu breakdown between user and system time) the next time this occurs?&lt;/p&gt;</comment>
                            <comment id="154292" author="jitendra908" created="Fri, 17 Aug 2012 11:46:18 +0000"  >&lt;p&gt;Hi,&lt;br/&gt;
Unfortunately i do not have logs. I attached log mongos_log_16_8_12.log.&lt;br/&gt;
Log can help. &lt;/p&gt;

&lt;p&gt;Please tell me what should do when mongos go at 100 % cpu&lt;/p&gt;


&lt;p&gt;Thanks,&lt;br/&gt;
Jitendra R Verma  &lt;/p&gt;</comment>
                            <comment id="154003" author="scotthernandez" created="Thu, 16 Aug 2012 15:54:06 +0000"  >&lt;p&gt;Can you please attach mongostat output from before and during the high cpu? There are many things which might cause the process to use high cpu during normal workloads.&lt;/p&gt;

&lt;p&gt;Also, what is the cpu breakdown? Is it all user time?&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="18797" name="mongos_log_16_8_12.log" size="55178213" author="jitendra908" created="Thu, 16 Aug 2012 15:50:06 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>5.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 16 Aug 2012 15:54:06 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        11 years, 25 weeks, 2 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, 25 weeks, 2 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>jitendra908</customfieldvalue>
            <customfieldvalue>scotthernandez</customfieldvalue>
            <customfieldvalue>spencer@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrmsvr:</customfieldvalue>

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

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

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