<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:01:28 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-2886] Many commands being executed for 1271310319ms,  mongo</title>
                <link>https://jira.mongodb.org/browse/SERVER-2886</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Server hosts two mongod instances:&lt;/p&gt;

&lt;p&gt;1. First mongod contains single 256 Mb capped collections with 100-300 inserts/sec and one index (no replica set, no sharding).&lt;br/&gt;
2. Second mongod is a replica set member.&lt;/p&gt;

&lt;p&gt;It has been working fine for about year, but since day before yesterday both instances began to lot of log messages like this:&lt;/p&gt;

&lt;p&gt;query admin.$cmd ntoreturn:1 command: &lt;/p&gt;
{ getlasterror: 1 }
&lt;p&gt; reslen:83 1271310319ms&lt;br/&gt;
insert db_name.coll_name 1271310319ms&lt;/p&gt;

&lt;p&gt;or in case of replica set&lt;/p&gt;

&lt;p&gt;query admin.$cmd ntoreturn:1 command: &lt;/p&gt;
{ replSetHeartbeat: &quot;vsrv&quot;, v: 12, pv: 1, checkEmpty: false, from: &quot;213.xxx.xxx.xxx:27017&quot; }
&lt;p&gt; reslen:132 1271310319ms&lt;/p&gt;


&lt;p&gt;Servers with other replica set member doesn&apos;t produce this messages.&lt;/p&gt;




&lt;p&gt;Maybe this issue connected with the fact that kernel began to log this messages to syslog:&lt;br/&gt;
Apr  1 00:51:37 vsrv-1 kernel: &lt;span class=&quot;error&quot;&gt;&amp;#91;41610.222721&amp;#93;&lt;/span&gt; BUG: soft lockup - CPU#0 stuck for 101s! &lt;span class=&quot;error&quot;&gt;&amp;#91;mongod:3853&amp;#93;&lt;/span&gt;&lt;/p&gt;</description>
                <environment>Debian Lenny 64-bit, 6 Gb RAM</environment>
        <key id="15426">SERVER-2886</key>
            <summary>Many commands being executed for 1271310319ms,  mongo</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="aaron">Aaron Staple</assignee>
                                    <reporter username="silver">aleksey</reporter>
                        <labels>
                    </labels>
                <created>Fri, 1 Apr 2011 20:03:26 +0000</created>
                <updated>Fri, 5 Oct 2012 04:05:15 +0000</updated>
                            <resolved>Mon, 25 Jun 2012 18:18:09 +0000</resolved>
                                    <version>1.8.0</version>
                                                                        <votes>0</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="136367" author="aaron" created="Mon, 25 Jun 2012 18:17:37 +0000"  >&lt;p&gt;We&apos;ve seen some strange logs in the past where the clock is moving forward but reported op times are always the same large value.  This could potentially be caused by certain types of flapping of the clock value but is still suspicious.&lt;/p&gt;

&lt;p&gt;Nonetheless, use of a non monotonic clock seems like the most likely cause at this point.  So I&apos;m going to close this ticket and mark as a duplicate of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-4740&quot; title=&quot;Use monotonic clock sources for Timer&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-4740&quot;&gt;&lt;del&gt;SERVER-4740&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="118028" author="kay.agahd@idealo.de" created="Thu, 10 May 2012 10:50:50 +0000"  >&lt;p&gt;You could fix it by using monotonic clock which is better suited than current time to measure time intervals. Monotonic clock is never negativ and often faster than calling gettimeofday.&lt;/p&gt;</comment>
                            <comment id="117762" author="renctan" created="Wed, 9 May 2012 17:56:14 +0000"  >&lt;p&gt;This probably has to do with our use of gettimeofday for measuring time. It appears that it is possible for the time returned from gettimeofday be backwards and this will give you negative time difference.&lt;/p&gt;

&lt;p&gt;Here&apos;s a short program below that simulates CurOp::elapsedMillis and shows how -10msec can interpreted into 14days&lt;/p&gt;

&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;int main(void) {&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;  unsigned long long ull = -10000; // -10msec&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;  int i = (int) (ull / 1000); // Interestingly, if you don&apos;t have parenthesis here, the output will show up as -10. (Our code has parens)&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;  cout &amp;lt;&amp;lt; &quot;i: &quot; &amp;lt;&amp;lt; i &amp;lt;&amp;lt; endl; // This gives you an output of i: 1271310309&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;}&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;</comment>
                            <comment id="28330" author="silver" created="Fri, 8 Apr 2011 14:02:33 +0000"  >&lt;p&gt;After we have allocated more RAM to this server, problem seems to be disappeared.&lt;/p&gt;

&lt;p&gt;It&apos;s strange, because database is not very large and this server hosts only this db and few workers, that doesn&apos;t consume much RAM:&lt;/p&gt;

&lt;p&gt;vsrv:SECONDARY&amp;gt; db.stats()&lt;br/&gt;
{&lt;br/&gt;
	&quot;db&quot; : &quot;getmyad_db&quot;,&lt;br/&gt;
	&quot;collections&quot; : 38,&lt;br/&gt;
	&quot;objects&quot; : 9636389,&lt;br/&gt;
	&quot;avgObjSize&quot; : 215.48789946109483,&lt;br/&gt;
	&quot;dataSize&quot; : 2076525224,&lt;br/&gt;
	&quot;storageSize&quot; : 2762447616,&lt;br/&gt;
	&quot;numExtents&quot; : 149,&lt;br/&gt;
	&quot;indexes&quot; : 45,&lt;br/&gt;
	&quot;indexSize&quot; : 1370229568,&lt;br/&gt;
	&quot;fileSize&quot; : 8519680000,&lt;br/&gt;
	&quot;ok&quot; : 1&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;vsrv:SECONDARY&amp;gt; db.serverStatus().mem&lt;br/&gt;
{&lt;br/&gt;
	&quot;bits&quot; : 64,&lt;br/&gt;
	&quot;resident&quot; : 4017,&lt;br/&gt;
	&quot;virtual&quot; : 11084,&lt;br/&gt;
	&quot;supported&quot; : true,&lt;br/&gt;
	&quot;mapped&quot; : 10476&lt;br/&gt;
}&lt;/p&gt;</comment>
                            <comment id="27607" author="scotthernandez" created="Sat, 2 Apr 2011 16:05:35 +0000"  >&lt;p&gt;If you have OS/hardware problems that would most likely be the cause. Are there any other messages coming from the os?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="28815">SERVER-4740</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="37649">SERVER-5745</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                                        </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="45025">SERVER-6550</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>5.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Sat, 2 Apr 2011 16:05:35 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        11 years, 34 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, 34 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>aaron</customfieldvalue>
            <customfieldvalue>silver</customfieldvalue>
            <customfieldvalue>kay.agahd@idealo.de</customfieldvalue>
            <customfieldvalue>randolph@mongodb.com</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|hrp233:</customfieldvalue>

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

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

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