<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:57:00 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-41172] update slow down</title>
                <link>https://jira.mongodb.org/browse/SERVER-41172</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;HI&lt;/p&gt;

&lt;p&gt;I found many slow updates from&#160; mongodb log ,as following:&lt;/p&gt;

&lt;p&gt;2019-05-16T18:12:56.514+0800 I COMMAND &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1931352&amp;#93;&lt;/span&gt; command db.$cmd command: update { update: &quot;table&quot;, ordered: true, writeConcern: &lt;/p&gt;
{ j: true }
&lt;p&gt;, updates: [ { q: &lt;/p&gt;
{ _id: ObjectId(&apos;5cd6e558d12f840077d79eb9&apos;) }
&lt;p&gt;, u: { _id: ObjectId(&apos;5cd6e558d12f840077d79eb9&apos;), im: &quot;ebca3a98c70b8de169f2231195ca4f24&quot;, h: &quot;www.aaaa.cc&quot;, nm: &quot;nm-string&quot;, ch: &quot;string&quot;, u: &quot;html_addr&quot;, s: 1, ut: 1558001574941 }, upsert: true } ] } numYields:0 reslen:119 locks:{ Global: { acquireCount: &lt;/p&gt;
{ r: 2, w: 2 }
&lt;p&gt; }, Database: { acquireCount: &lt;/p&gt;
{ w: 2 }
&lt;p&gt; }, Collection: { acquireCount: &lt;/p&gt;
{ w: 1 }
&lt;p&gt; }, Metadata: { acquireCount: &lt;/p&gt;
{ w: 1 }
&lt;p&gt; }, oplog: { acquireCount: &lt;/p&gt;
{ w: 1 }
&lt;p&gt; } } protocol:op_query 1571ms&lt;/p&gt;

&lt;p&gt;but&#160; i saw the secton of&#160; locks ,&#160; cound&apos;t find anything&#160;&lt;em&gt;valuable&lt;/em&gt;&#160;.&lt;/p&gt;

&lt;p&gt;version of mongodb is&#160; 3.4.17&#160;&lt;/p&gt;

&lt;p&gt;how can i&#160; found&#160; &#160;this 1571ms&#160; &#160; &#160; costed by which section of mongodb.&lt;/p&gt;</description>
                <environment></environment>
        <key id="769665">SERVER-41172</key>
            <summary>update slow down</summary>
                <type id="6" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14720&amp;avatarType=issuetype">Question</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="eric.sedor@mongodb.com">Eric Sedor</assignee>
                                    <reporter username="shawn001">shawn</reporter>
                        <labels>
                    </labels>
                <created>Thu, 16 May 2019 10:29:52 +0000</created>
                <updated>Mon, 20 May 2019 18:57:21 +0000</updated>
                            <resolved>Mon, 20 May 2019 18:57:20 +0000</resolved>
                                                                    <component>Querying</component>
                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="2253163" author="eric.sedor" created="Mon, 20 May 2019 18:57:09 +0000"  >&lt;p&gt;As you&apos;ve noted, log lines include the overall operation time and time spent waiting on locks. &lt;span class=&quot;error&quot;&gt;&amp;#91;Explain\https://docs.mongodb.com/manual/reference/method/cursor.explain/&amp;#93;&lt;/span&gt; is available for observing the work queries do and &lt;a href=&quot;https://docs.mongodb.com/manual/reference/method/db.setLogLevel/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;additional logging verbosity&lt;/a&gt; will also provide more detailed information.&lt;/p&gt;

&lt;p&gt;We&apos;re going to go ahead and close this ticket. If you have any questions about these features we 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="2249901" author="shawn001" created="Fri, 17 May 2019 04:40:06 +0000"  >&lt;p&gt;HI&lt;/p&gt;

&lt;p&gt;sadly to&#160; hear that&#65292; this case&#160; occurs&#160; almostly every two minites in my production env.&lt;/p&gt;

&lt;p&gt;and mongo doesn&apos;t&#160; tell me the time&#160; used by which section or functions , i&apos;ve no idea&#160; about&#160; how to do more investigating.&lt;/p&gt;

&lt;p&gt;I think&#160; &#65292;for the convenience of investiagating &#65292;we shoud add&#160; time used detail&#160; to&#160; mongo log.&lt;/p&gt;</comment>
                            <comment id="2249788" author="eric.sedor" created="Fri, 17 May 2019 00:05:03 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=shawn001&quot; class=&quot;user-hover&quot; rel=&quot;shawn001&quot;&gt;shawn001&lt;/a&gt;;&lt;/p&gt;

&lt;p&gt;The SERVER project is for bugs and feature suggestions for the MongoDB server. For initial assistance troubleshooting slow updates and interpreting diagnostic information, 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;

&lt;p&gt;If I&apos;ve misunderstood and you have reason to suspect a bug, please let us know.&lt;/p&gt;

&lt;p&gt;Thank you!&lt;/p&gt;</comment>
                            <comment id="2248613" author="shawn001" created="Thu, 16 May 2019 10:56:35 +0000"  >&lt;p&gt;explain msg as following&#65306;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&quot;executionStats&quot; : {&lt;br/&gt;
 &quot;executionSuccess&quot; : true,&lt;br/&gt;
 &quot;nReturned&quot; : 0,&lt;br/&gt;
 &quot;executionTimeMillis&quot; : 0,&lt;br/&gt;
 &quot;totalKeysExamined&quot; : 1,&lt;br/&gt;
 &quot;totalDocsExamined&quot; : 1,&lt;br/&gt;
 &quot;executionStages&quot; : {&lt;br/&gt;
 &quot;stage&quot; : &quot;UPDATE&quot;,&lt;br/&gt;
 &quot;nReturned&quot; : 0,&lt;br/&gt;
 &quot;executionTimeMillisEstimate&quot; : 0,&lt;br/&gt;
 &quot;works&quot; : 2,&lt;br/&gt;
 &quot;advanced&quot; : 0,&lt;br/&gt;
 &quot;needTime&quot; : 1,&lt;br/&gt;
 &quot;needYield&quot; : 0,&lt;br/&gt;
 &quot;saveState&quot; : 0,&lt;br/&gt;
 &quot;restoreState&quot; : 0,&lt;br/&gt;
 &quot;isEOF&quot; : 1,&lt;br/&gt;
 &quot;invalidates&quot; : 0,&lt;br/&gt;
 &quot;nMatched&quot; : 1,&lt;br/&gt;
 &quot;nWouldModify&quot; : 1,&lt;br/&gt;
 &quot;nInvalidateSkips&quot; : 0,&lt;br/&gt;
 &quot;wouldInsert&quot; : false,&lt;br/&gt;
 &quot;fastmodinsert&quot; : false,&lt;br/&gt;
 &quot;inputStage&quot; : &lt;/p&gt;
{
 &quot;stage&quot; : &quot;IDHACK&quot;,
 &quot;nReturned&quot; : 1,
 &quot;executionTimeMillisEstimate&quot; : 0,
 &quot;works&quot; : 1,
 &quot;advanced&quot; : 1,
 &quot;needTime&quot; : 0,
 &quot;needYield&quot; : 0,
 &quot;saveState&quot; : 1,
 &quot;restoreState&quot; : 1,
 &quot;isEOF&quot; : 1,
 &quot;invalidates&quot; : 0,
 &quot;keysExamined&quot; : 1,
 &quot;docsExamined&quot; : 1
 }
&lt;p&gt; }&lt;br/&gt;
 }&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 17 May 2019 00:05:03 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            4 years, 38 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>eric.sedor@mongodb.com</customfieldvalue>
            <customfieldvalue>shawn001</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|huzt3j:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hup44n:</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>
                                    <customfieldvalue><![CDATA[eric.sedor@mongodb.com]]></customfieldvalue>
    

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

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