<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:45:44 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-17834] index restore/creation causes &apos;out of memory&apos; &amp; process termination</title>
                <link>https://jira.mongodb.org/browse/SERVER-17834</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;using WT, when index is created from either a) mongorestore or b) createIndex, this causes an &apos;out of memory&apos; error and terminates the mongod process.&lt;/p&gt;

&lt;p&gt;&amp;gt; db.trades.stats()&lt;/p&gt;
{
        &quot;ns&quot; : &quot;coinb.trades&quot;,
        &quot;count&quot; : 23017771,
        &quot;size&quot; : 36313819242,
        &quot;avgObjSize&quot; : 1577,
        &quot;storageSize&quot; : 914694144,
        &quot;capped&quot; : false
}</description>
                <environment>Xen 4.2.5-34.el6 host&lt;br/&gt;
Ubuntu Server 14.04 x64&lt;br/&gt;
1GB RAM, 2CPU</environment>
        <key id="193347">SERVER-17834</key>
            <summary>index restore/creation causes &apos;out of memory&apos; &amp; process termination</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="ramon.fernandez@mongodb.com">Ramon Fernandez Marina</assignee>
                                    <reporter username="redwoz">Warwick Brown</reporter>
                        <labels>
                    </labels>
                <created>Wed, 1 Apr 2015 11:14:08 +0000</created>
                <updated>Fri, 15 May 2015 21:19:15 +0000</updated>
                            <resolved>Fri, 15 May 2015 21:19:15 +0000</resolved>
                                    <version>3.0.1</version>
                                                    <component>Index Maintenance</component>
                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="878601" author="ramon.fernandez" created="Fri, 10 Apr 2015 19:44:03 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=redwoz&quot; class=&quot;user-hover&quot; rel=&quot;redwoz&quot;&gt;redwoz&lt;/a&gt;, there are a number of memory-related issues with WT that we&apos;re actively working on and that may explain the behavior you&apos;re seeing (see for example &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-17424&quot; title=&quot;WiredTiger uses substantially more memory than accounted for by cache&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-17424&quot;&gt;&lt;del&gt;SERVER-17424&lt;/del&gt;&lt;/a&gt;). Until these issues are addressed you may need to add more virtual memory to your deployment, or continue to use MMAPv1 if it doesn&apos;t suffer from the same issue.&lt;/p&gt;

&lt;p&gt;Regards,&lt;br/&gt;
Ram&#243;n.&lt;/p&gt;</comment>
                            <comment id="870106" author="redwoz" created="Wed, 1 Apr 2015 13:12:01 +0000"  >&lt;p&gt;i do agree that 1GB is very low, but had no issues before WT. i do understand if this is the norm for WT and not a bug as such. thanks.&lt;/p&gt;</comment>
                            <comment id="870097" author="ramon.fernandez" created="Wed, 1 Apr 2015 13:00:39 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=redwoz&quot; class=&quot;user-hover&quot; rel=&quot;redwoz&quot;&gt;redwoz&lt;/a&gt;, how much swap space do you have on your machine? 1GB of RAM is a very low amount, so unless your machine has plenty of swap space you may run out of memory when dealing with a data set this size. I&apos;d strongly recommend you increase the amount of RAM allocated to this virtual machine.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="69347" name="console.out" size="7782" author="redwoz" created="Wed, 1 Apr 2015 11:14:08 +0000"/>
                            <attachment id="69348" name="mongod.conf" size="324" author="redwoz" created="Wed, 1 Apr 2015 11:14:08 +0000"/>
                            <attachment id="69346" name="mongodb.log" size="11080" author="redwoz" created="Wed, 1 Apr 2015 11:14:08 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 1 Apr 2015 13:00:39 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        8 years, 44 weeks, 5 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, 44 weeks, 5 days ago
                        </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>ramon.fernandez@mongodb.com</customfieldvalue>
            <customfieldvalue>redwoz</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrl9ev:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hs7ou7:</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_10750" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Steps To Reproduce</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;mongorestore -v -j 1 --stopOnError --dir ~/mongodb_backup_301/coinb/trades.bson -d coinb -c trades&lt;/p&gt;

&lt;p&gt;works though when specifying --noIndexRestore, but fails when using createIndex to re-implement indexing afterwards&lt;/p&gt;

&lt;p&gt;index specified: {&quot;v&quot;:1,&quot;unique&quot;:true,&quot;key&quot;:&lt;/p&gt;
{&quot;exchange&quot;:1,&quot;tid&quot;:1}
&lt;p&gt;,&quot;name&quot;:&quot;exchange_1_tid_1&quot;,&quot;ns&quot;:&quot;coinb.trades&quot;}&lt;br/&gt;
(exchange is a short string, tid is a number)&lt;/p&gt;</customfieldvalue>

                        </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|hsg5c7:</customfieldvalue>

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