<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:49: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-18987] Write Slow in WiredTiger Database</title>
                <link>https://jira.mongodb.org/browse/SERVER-18987</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Hi Team , &lt;/p&gt;

&lt;p&gt;There is a performance issue with write operations , data insert to the database very slow in a sudden and will get back to normal in some seconds .&lt;/p&gt;

&lt;p&gt;Strange Logs like this :&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;   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;2015-06-16T10:23:58.212+0800 I COMMAND  [conn287864] command ISH_Fact.$cmd command: insert { insert: &quot;FactAppLoginLog&quot;, ordered: true, documents: [ { _id: ObjectId(&apos;557f88bda310a27a4f3893eb&apos;), userid: &quot;557f5befa310c0e3f3324e2d&quot;, username: &quot;15026835043&quot;, passauthtime: 578, locationinfo: { height: 0.0, precision: 43.0, gps: [ 31.21235656738281, 121.4836959838867 ] }, ispass: true, uuid: &quot;58a41e3c-2392-3e97-be73-0a4542c3ff0f&quot;, os: &quot;Android&quot;, type: &quot;PAD&quot;, version: &quot;9&quot;, eventtime: new Date(1434421366267), eventt: 6, ct: new Date(1434421437738) } ] } keyUpdates:0 writeConflicts:0 numYields:0 reslen:80 locks:{ Global: { acquireCount: { w: 3 } }, Database: { acquireCount: { w: 3 } }, Collection: { acquireCount: { w: 2 } }, oplog: { acquireCount: { w: 1 } } } 474ms&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&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;   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;2015-06-16T10:23:58.213+0800 I COMMAND  [conn287789] command ISH_Fact.$cmd command: insert { insert: &quot;FactPortalADPresent&quot;, ordered: true, documents: [ { _id: ObjectId(&apos;557f88bda310a27a4f3893ef&apos;), spotid: &quot;new_ishmobile_rotate_B03&quot;, batchid: &quot;9aa09df5-4929-8bfc-13af-556fbe1dd41c&quot;, os: &quot;iOS 7&quot;, type: &quot;Smartphone&quot;, op: &quot;telecom&quot;, buv: &quot;14dfa2e18f0-067523f0-e621-4f96-8df9-39e78e4ba0c7&quot;, un: &quot;13501880398&quot;, site: &quot;i-shanghai&quot;, et: new Date(1434421437899) } ] } keyUpdates:0 writeConflicts:0 numYields:0 reslen:80 locks:{ Global: { acquireCount: { w: 3 } }, Database: { acquireCount: { w: 3 } }, Collection: { acquireCount: { w: 2 } }, oplog: { acquireCount: { w: 1 } } } 290ms&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;As you can see , the op only locks the db for 2 or 3 ms but it cost 300ms to finish , there is only _id index on those tables , about 4,000 write ops every minute on those tables.&lt;/p&gt;

&lt;p&gt;Could you advise how to trouble shooting the issue ?&lt;/p&gt;

&lt;p&gt;Thanks, &lt;/p&gt;

&lt;p&gt;Carl Dong &lt;/p&gt;</description>
                <environment></environment>
        <key id="210844">SERVER-18987</key>
            <summary>Write Slow in WiredTiger Database</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="sam.kleinman">Sam Kleinman</assignee>
                                    <reporter username="carl.dong@windfindtech.com">carl dong</reporter>
                        <labels>
                    </labels>
                <created>Tue, 16 Jun 2015 02:36:38 +0000</created>
                <updated>Thu, 18 Jun 2015 18:30:17 +0000</updated>
                            <resolved>Thu, 18 Jun 2015 18:30:17 +0000</resolved>
                                    <version>3.0.3</version>
                                                    <component>WiredTiger</component>
                    <component>Write Ops</component>
                                        <votes>0</votes>
                                    <watches>8</watches>
                                                                                                                <comments>
                            <comment id="944550" author="samk" created="Thu, 18 Jun 2015 18:06:40 +0000"  >&lt;p&gt;Just as a reminder, the SERVER project is for bug reports and feature requests of the core MongoDB software. It might make more sense to tracking troubleshooting and investigative projects via one of our &lt;a href=&quot;https://www.mongodb.org/about/support&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;support channels&lt;/a&gt;. I&apos;m going to go ahead and close this issue, but we can reopen or open another if we find a specific related issue here.&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Are the slow insert operations happening in a capped collection? There are a number of issues with the performance of capped collections with WiredTiger that we&apos;re currently tracking. For example, &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-18875&quot; title=&quot;Oplog performance on WT degrades over time after accumulation of deleted items&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-18875&quot;&gt;&lt;del&gt;SERVER-18875&lt;/del&gt;&lt;/a&gt;, &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-18081&quot; title=&quot;Tailing the oplog requires paging in the recently added entries under WiredTiger&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-18081&quot;&gt;&lt;del&gt;SERVER-18081&lt;/del&gt;&lt;/a&gt; and &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-17033&quot; title=&quot;Improve performance for bulk insert into WT with under oplog back pressure&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-17033&quot;&gt;&lt;del&gt;SERVER-17033&lt;/del&gt;&lt;/a&gt;.&lt;/li&gt;
	&lt;li&gt;Does modifying the size of the WiredTiger cache impact the performance characteristics that you observe? The rate of cache evictions may account for some of your observed performance.&lt;/li&gt;
	&lt;li&gt;Is performance consistently slow, or is the slowness intermittent only at certain points of day or on some other interval?&lt;/li&gt;
	&lt;li&gt;Are only inserts impacted?&lt;/li&gt;
	&lt;li&gt;What write concern did you specify on these write operations?&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;I hope that this provides you with a good starting point to begin your troubleshooting!&lt;/p&gt;

&lt;p&gt;Regards,&lt;br/&gt;
sam&lt;/p&gt;</comment>
                            <comment id="941502" author="carl.dong@windfindtech.com" created="Tue, 16 Jun 2015 08:49:05 +0000"  >&lt;p&gt;Mongo Instance Config file :&lt;/p&gt;

&lt;p&gt;processManagement :&lt;br/&gt;
 fork : true&lt;br/&gt;
 pidFilePath :  /home/ISH/ISH.pid&lt;br/&gt;
systemLog:&lt;br/&gt;
 destination : file&lt;br/&gt;
 path : /home/ISH/Log/iSH_DB_Log&lt;br/&gt;
 logAppend : true&lt;/p&gt;

&lt;p&gt;storage:&lt;br/&gt;
 dbPath : /home/ISH/Data_WiredTiger&lt;br/&gt;
 engine : wiredTiger&lt;br/&gt;
 wiredTiger : &lt;br/&gt;
  engineConfig :&lt;br/&gt;
   cacheSizeGB : 20&lt;br/&gt;
 directoryPerDB : true&lt;br/&gt;
net:&lt;br/&gt;
 port : 30001&lt;br/&gt;
 maxIncomingConnections : 2000&lt;/p&gt;

&lt;p&gt;security:&lt;br/&gt;
 authorization  : enabled&lt;br/&gt;
 keyFile : /home/ISH/Keys/MongoKey&lt;/p&gt;

&lt;p&gt;replication:&lt;br/&gt;
 replSetName : ish&lt;/p&gt;

&lt;p&gt;auditLog:&lt;br/&gt;
 destination : file&lt;br/&gt;
 format : JSON&lt;br/&gt;
 path : /home/ISH/Log/ISHDBAduit.json&lt;br/&gt;
 filter : &apos;{ atype : {$nin : &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;authenticate&amp;quot;&amp;#93;&lt;/span&gt;} }&apos;&lt;/p&gt;



</comment>
                    </comments>
                    <attachments>
                            <attachment id="78064" name="OpsManager.jpg" size="73667" author="carl.dong@windfindtech.com" created="Tue, 16 Jun 2015 09:28:30 +0000"/>
                            <attachment id="78060" name="db.log" size="38873" author="carl.dong@windfindtech.com" created="Tue, 16 Jun 2015 08:49:39 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 16 Jun 2015 12:34:23 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        8 years, 34 weeks, 6 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>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            8 years, 34 weeks, 6 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>carl.dong@windfindtech.com</customfieldvalue>
            <customfieldvalue>sam.kleinman</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrl34n:</customfieldvalue>

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

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