<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:24:07 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-10812] Huge virtual memory</title>
                <link>https://jira.mongodb.org/browse/SERVER-10812</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;I have a database of 3.04GB but the memory chart always show me that I have aprox. 40GB of virtual memory, that seems to be bad.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://mms.mongodb.com/chart/bookmark/510446077fe227e9f1832ec9/5239b6c3e4b0df4507f04a38&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://mms.mongodb.com/chart/bookmark/510446077fe227e9f1832ec9/5239b6c3e4b0df4507f04a38&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;What could I have bad configurated??? &lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;</description>
                <environment>Ubuntu 12.04 LTS</environment>
        <key id="90586">SERVER-10812</key>
            <summary>Huge virtual memory</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="alex.komyagin@mongodb.com">Alexander Komyagin</assignee>
                                    <reporter username="info@futmondo.com">Daniel Rubio</reporter>
                        <labels>
                    </labels>
                <created>Wed, 18 Sep 2013 14:24:49 +0000</created>
                <updated>Wed, 10 Dec 2014 23:18:19 +0000</updated>
                            <resolved>Thu, 7 Nov 2013 02:57:21 +0000</resolved>
                                    <version>2.4.6</version>
                                                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="435010" author="alex.komyagin@10gen.com" created="Thu, 3 Oct 2013 03:42:02 +0000"  >&lt;p&gt;Hi Daniel,&lt;/p&gt;

&lt;p&gt;We have not heard from you for some time. Do you have any further questions or comments? Otherwise I will go ahead and close this ticket.&lt;/p&gt;

&lt;p&gt;-Alex&lt;/p&gt;</comment>
                            <comment id="428795" author="alex.komyagin@10gen.com" created="Thu, 19 Sep 2013 21:36:12 +0000"  >&lt;p&gt;Daniel,&lt;/p&gt;

&lt;p&gt;If you want to dig further into the issue, the next step would be to check what particular type of queries causes your non-mapped memory to grow:&lt;br/&gt;
1) stop all the queries&lt;br/&gt;
2) stepDown the current primary to free up memory&lt;br/&gt;
3) gradually enable queries type by type watching when the non-mapped memory starts growing.&lt;/p&gt;

&lt;p&gt;As an alternative, you can just upgrade one of your servers to the most recent 2.4 nightly build (&lt;a href=&quot;http://downloads.mongodb.org/linux/mongodb-linux-x86_64-v2.4-latest.tgz&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://downloads.mongodb.org/linux/mongodb-linux-x86_64-v2.4-latest.tgz&lt;/a&gt;) with these fixes included, force that member to become a primary and see if it fixes your issue.&lt;/p&gt;

&lt;p&gt;Also note that the fix for &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-10596&quot; title=&quot;V8 cache data is not cleaned up in connection after usage&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-10596&quot;&gt;&lt;del&gt;SERVER-10596&lt;/del&gt;&lt;/a&gt; does not completely eliminate the 512MB virtual address space reservations used in V8, but moves the Javascript engine pools from per-thread scope to a global scope. So the amount of 512MB blocks of allocated virtual address space should be bounded by &lt;em&gt;max(10, number of concurrent server-side JS queries)&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;-Alex&lt;/p&gt;</comment>
                            <comment id="428767" author="info@futmondo.com" created="Thu, 19 Sep 2013 21:05:02 +0000"  >&lt;p&gt;Hi again Alex,&lt;/p&gt;

&lt;p&gt;Yes, it seems both issues could suit to my environment, specially&lt;br/&gt;
&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-10554&quot; title=&quot;memory leak in MutableDocument::setNestedField&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-10554&quot;&gt;&lt;del&gt;SERVER-10554&lt;/del&gt;&lt;/a&gt;. I have a lot of nested documents.&lt;/p&gt;

&lt;p&gt;I am the software developer so I can turn on/off the queries, the problem&lt;br/&gt;
is that I need $where queries to get some data. Do you want to test&lt;br/&gt;
something?&lt;/p&gt;

&lt;p&gt;Regards&lt;/p&gt;


&lt;p&gt;2013/9/19 Alex Komyagin (JIRA) &amp;lt;jira@mongodb.org&amp;gt;&lt;/p&gt;
</comment>
                            <comment id="428753" author="alex.komyagin@10gen.com" created="Thu, 19 Sep 2013 20:56:05 +0000"  >&lt;p&gt;Hi Daniel,&lt;/p&gt;

&lt;p&gt;The high virtual memory you are seeing is probably caused by &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-10596&quot; title=&quot;V8 cache data is not cleaned up in connection after usage&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-10596&quot;&gt;&lt;del&gt;SERVER-10596&lt;/del&gt;&lt;/a&gt;. You can see that it drops off with connections. As per the &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-10596&quot; title=&quot;V8 cache data is not cleaned up in connection after usage&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-10596&quot;&gt;&lt;del&gt;SERVER-10596&lt;/del&gt;&lt;/a&gt;, the memory occupied by the V8 engine is just a virtual address space, so it doesn&apos;t do any real harm unless it reaches the maximum of the address space (64TB for x64 system).&lt;/p&gt;

&lt;p&gt;I&apos;m more concerned with the resident memory size being bigger than your mapped memory. The difference between RSS and mapped memory looks to be fairly small, but correlated with connection count, so I think it might be a case for &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-10554&quot; title=&quot;memory leak in MutableDocument::setNestedField&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-10554&quot;&gt;&lt;del&gt;SERVER-10554&lt;/del&gt;&lt;/a&gt;. &lt;/p&gt;

&lt;p&gt;Both mentioned SERVER tickets are fixed and will be included in the 2.4.7 build.&lt;/p&gt;

&lt;p&gt;Do you have the ability to turn on/off different types of queries/commands in your system?&lt;/p&gt;

&lt;p&gt;-Alex&lt;/p&gt;</comment>
                            <comment id="428713" author="info@futmondo.com" created="Thu, 19 Sep 2013 20:13:02 +0000"  >&lt;p&gt;Hi Alex,&lt;/p&gt;

&lt;p&gt;I am using in another server nodejs with mongoose to connect to mongodb.&lt;/p&gt;

&lt;p&gt;About queries I have two or three queries with $where&lt;/p&gt;

&lt;p&gt;Kind regards&lt;/p&gt;
</comment>
                            <comment id="428702" author="alex.komyagin@10gen.com" created="Thu, 19 Sep 2013 19:55:22 +0000"  >&lt;p&gt;Hi Daniel,&lt;/p&gt;

&lt;p&gt;Are you using aggregation framework and/or server side JavaScript ($where, Map-Reduce, distinct) ?&lt;/p&gt;

&lt;p&gt;-Alex&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>6.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 19 Sep 2013 19:55:22 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        10 years, 19 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>
                            10 years, 19 weeks, 6 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>alex.komyagin@mongodb.com</customfieldvalue>
            <customfieldvalue>info@futmondo.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrmg87:</customfieldvalue>

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

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

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