<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:05: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-4354] Waiting mongo process leaks memory.</title>
                <link>https://jira.mongodb.org/browse/SERVER-4354</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Very long running query from the shell (mongo) (doing nothing), kills memory/swap on the client machine. mongod is not running on same machine.&lt;/p&gt;

&lt;p&gt;e.g. run this and wait 5 hours and look at swap.&lt;/p&gt;

&lt;p&gt;var conn = new Mongo(&apos;mongo_machine_ip&apos;);&lt;br/&gt;
var some_db = conn.getDB(&apos;some_db&apos;);&lt;/p&gt;

&lt;p&gt;var mysleep = function(){&lt;/p&gt;

&lt;p&gt;        var conn = new Mongo();&lt;br/&gt;
        var some_db = conn.getDB(&apos;some_db&apos;);&lt;br/&gt;
        sleep(1000*60*60*5);&lt;br/&gt;
        return &lt;span class=&quot;error&quot;&gt;&amp;#91;1,2&amp;#93;&lt;/span&gt;;&lt;br/&gt;
};&lt;/p&gt;


&lt;p&gt;var a = forces.eval(mysleep);&lt;br/&gt;
print(a);&lt;/p&gt;</description>
                <environment>OS X 10.7.2. 8GB RAM, 2.3 GHz Intel Core i5 Macbook Pro</environment>
        <key id="25336">SERVER-4354</key>
            <summary>Waiting mongo process leaks memory.</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="brandon">Brandon Diamond</assignee>
                                    <reporter username="markgb">Mark G B</reporter>
                        <labels>
                    </labels>
                <created>Tue, 22 Nov 2011 21:21:20 +0000</created>
                <updated>Mon, 11 Jul 2016 18:33:58 +0000</updated>
                            <resolved>Mon, 12 Dec 2011 21:37:27 +0000</resolved>
                                    <version>2.0.1</version>
                                                    <component>Shell</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="72587" author="brandon" created="Mon, 12 Dec 2011 21:36:58 +0000"  >&lt;p&gt;Ah &amp;#8211; fantastic. Thanks so much for the extra details; we&apos;ll keep that info in mind if we encounter any similar reports in the future. Glad that things are working as expected.&lt;/p&gt;</comment>
                            <comment id="72585" author="markgb" created="Mon, 12 Dec 2011 21:32:56 +0000"  >&lt;p&gt;Apologies. Here is a better explanation:&lt;/p&gt;

&lt;p&gt;I was running Mongo on a virtualized Linux in VMWare which was running on OS/X.&lt;br/&gt;
OS/X apparently has issues with memory mapped files and creating empty swap. See the discussion here &lt;a href=&quot;http://stackoverflow.com/questions/2017283/c-program-stuck-on-uninterruptible-wait-while-performing-disk-i-o-on-mac-os-x-sn&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://stackoverflow.com/questions/2017283/c-program-stuck-on-uninterruptible-wait-while-performing-disk-i-o-on-mac-os-x-sn&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I guess VMWare is optimized in such a way that the problem creates excess swap in OS/X even when it&apos;s running in the virtualized Linux. Linux swap remains unused, therefore I assumed the problem was in OS/X, where the only thing running (other than VMWare) was mongo. Hence, I thought it was the mongo client.&lt;/p&gt;

&lt;p&gt;I was creating a new mongo because it seemed mysleep was not properly capturing it&apos;s scope when sent to the server using eval. So I had to reconstruct a new Mongo in the function.   &lt;/p&gt;</comment>
                            <comment id="72573" author="brandon" created="Mon, 12 Dec 2011 21:18:30 +0000"  >&lt;p&gt;I&apos;ve been unable to reproduce this issue. Memory usage has increased at a fairly normal rate on my machine; most of it due to Firefox which was running at the same time.&lt;/p&gt;

&lt;p&gt;Out of curiosity, is there a reason you&apos;re constructing a new Mongo() in the mysleep function? I wonder if this might have something to do with what you&apos;re seeing.&lt;/p&gt;</comment>
                            <comment id="68369" author="markgb" created="Tue, 22 Nov 2011 21:24:31 +0000"  >&lt;p&gt;2nd last line should have been&lt;/p&gt;



&lt;p&gt;var a = some_db.eval(mysleep);&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>Mon, 12 Dec 2011 21:18:30 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            12 years, 10 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="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>brandon</customfieldvalue>
            <customfieldvalue>markgb</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrokuf:</customfieldvalue>

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

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

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