<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:54:45 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-642] &quot;mmap failed with out of memory&quot; on 64-bit host</title>
                <link>https://jira.mongodb.org/browse/SERVER-642</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;I&apos;m currently evaluating MongoDB for storing large datasets. After inserting a significant amount of data (perhaps 4GB based on the mongod process size?) inserts start failing with messages like the following:&lt;/p&gt;

&lt;p&gt;Tue Feb 16 10:41:18 insert test_database.archive2 exception userassert:can&apos;t map file memory 0ms&lt;br/&gt;
  mmap() failed for /home/msmits/mongo-data/test_database.7 len:2146435072 errno:12&lt;br/&gt;
     mmap failed with out of memory, if you&apos;re using 32-bits, then you probably need to upgrade to 64&lt;br/&gt;
Tue Feb 16 10:41:18  test_database.archive2  Caught Assertion insert, continuing&lt;/p&gt;

&lt;p&gt;I was under the impression that this should only happen on 32-bit systems. At the point of failure there is still several GB of physical memory available.&lt;/p&gt;

&lt;p&gt;I am able to reproduce this problem with all the 64-bit builds on the downloads page (1.2.2, 1.2 latest, 1.3.2 and 1.3 latest).&lt;/p&gt;

&lt;p&gt;See the attachment for a sample Python client script that reproduces the problem. On my machine it takes approx 15 mins for the failure to occur.&lt;/p&gt;</description>
                <environment>Suse Linux Enterprise 11 - 64-bit&lt;br/&gt;
&lt;br/&gt;
uname -a output:&lt;br/&gt;
Linux myhost 2.6.27.39-0.3-default #1 SMP 2009-11-23 12:57:38 +0100 x86_64 x86_64 x86_64 GNU/Linux&lt;br/&gt;
&lt;br/&gt;
glibc version is 2.9&lt;br/&gt;
&lt;br/&gt;
8GB of physical memory. 2GB of swap.&lt;br/&gt;
&lt;br/&gt;
</environment>
        <key id="11316">SERVER-642</key>
            <summary>&quot;mmap failed with out of memory&quot; on 64-bit host</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="2" iconUrl="https://jira.mongodb.org/images/icons/priorities/critical.svg">Critical - P2</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="eliot">Eliot Horowitz</assignee>
                                    <reporter username="msmits">Menno Smits</reporter>
                        <labels>
                    </labels>
                <created>Wed, 17 Feb 2010 04:09:52 +0000</created>
                <updated>Tue, 2 Mar 2010 12:52:16 +0000</updated>
                            <resolved>Wed, 17 Feb 2010 08:31:17 +0000</resolved>
                                    <version>1.2.2</version>
                    <version>1.2.3</version>
                    <version>1.3.2</version>
                    <version>1.3.4</version>
                                                    <component>Stability</component>
                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="12400" author="msmits" created="Fri, 19 Feb 2010 04:17:03 +0000"  >&lt;p&gt;Thanks for your help. That&apos;s exactly what the problem was.&lt;/p&gt;

&lt;p&gt;For the benefit of others, the default address space limit on SLE 11 is 8GB. The limit can be changed/removed at the command line. &lt;/p&gt;

&lt;p&gt;When using bash:&lt;br/&gt;
ulimit -a      # check limits&lt;br/&gt;
ulimit  -v 0  # remove address space limit&lt;/p&gt;

&lt;p&gt;When using zsh:&lt;br/&gt;
limit  # check limits&lt;br/&gt;
limit addressspace unlimited  # remove address space limit&lt;/p&gt;

&lt;p&gt;You need to run these commands in the shell before starting mongod.&lt;/p&gt;

&lt;p&gt;To change the limit globally at boot time see /etc/sysconfig/ulimit&lt;/p&gt;</comment>
                            <comment id="12355" author="eliot" created="Wed, 17 Feb 2010 08:31:17 +0000"  >&lt;p&gt;this is a suse limit problem i believe.&lt;br/&gt;
do a limit -a (or ulimit based on shell)&lt;br/&gt;
i think suse ships with a setting like &lt;br/&gt;
max virtual memory 4gb&lt;br/&gt;
you need to change that to unlimited before starting mongod&lt;/p&gt;</comment>
                            <comment id="12353" author="msmits" created="Wed, 17 Feb 2010 04:11:42 +0000"  >&lt;p&gt;Forgot to mention. I&apos;m happy to test patches or try other things to help debug this.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="10138" name="break-stuff.py" size="323" author="msmits" created="Wed, 17 Feb 2010 04:09:52 +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, 17 Feb 2010 08:31:17 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            14 years, 5 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_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>msmits</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrncfz:</customfieldvalue>

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

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

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