<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:01:50 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-3016] out of memory when doing $where clause within eval</title>
                <link>https://jira.mongodb.org/browse/SERVER-3016</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;info at SUPPORT-117&lt;br/&gt;
Found a workaround for user, but still we should investigate mem leak.&lt;/p&gt;</description>
                <environment></environment>
        <key id="16462">SERVER-3016</key>
            <summary>out of memory when doing $where clause within eval</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="3">Duplicate</resolution>
                                        <assignee username="antoine">Antoine Girbal</assignee>
                                    <reporter username="antoine">Antoine Girbal</reporter>
                        <labels>
                    </labels>
                <created>Thu, 28 Apr 2011 21:44:31 +0000</created>
                <updated>Thu, 21 Sep 2017 17:00:32 +0000</updated>
                            <resolved>Wed, 12 Oct 2011 04:17:37 +0000</resolved>
                                                                                        <votes>1</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="59962" author="antoine" created="Wed, 12 Oct 2011 04:17:37 +0000"  >&lt;p&gt;most likely duplicate of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-3528&quot; title=&quot;memory footprint of JS context keeps increasing as it is used&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-3528&quot;&gt;&lt;del&gt;SERVER-3528&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="33837" author="marcellanz" created="Sun, 22 May 2011 09:31:26 +0000"  >&lt;p&gt;I can provide time and logs at any time to resolve this issue, or:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;do you plan to fix it using V8 ?&lt;/li&gt;
	&lt;li&gt;should I buy a license &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/smile.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="31602" author="marcellanz" created="Mon, 9 May 2011 14:50:51 +0000"  >&lt;p&gt;do one have to null-out/GC a variable explicitly after assigning a collection to it ? (and as I do in my queries); because the heap should not grow if one uses constant size collections and assign them to a JS variable ?&lt;/p&gt;</comment>
                            <comment id="31593" author="antoine" created="Mon, 9 May 2011 14:40:24 +0000"  >&lt;p&gt;It looks like either there are some large mem leaks with SM, or the JS heap limit is too low.&lt;br/&gt;
If I try to use the pure JS M/R with SM I get an OOM fairly quickly, which does not happen with v8.&lt;/p&gt;</comment>
                            <comment id="31236" author="marcellanz" created="Thu, 5 May 2011 16:53:44 +0000"  >&lt;p&gt;after a few days more we got the OOM again.&lt;/p&gt;



&lt;p&gt;May  5 18:40:54 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn140&amp;#93;&lt;/span&gt; query A3.reduced.chunks ntoreturn:1 reslen:16486 nscanned:1 &lt;/p&gt;
{ files_id: ObjectId(&apos;4db7039c7cb3eb3ef05ad674&apos;), n: 0 }
&lt;p&gt;  nreturned:1 151ms&lt;br/&gt;
Thu May  5 18:40:54 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn142&amp;#93;&lt;/span&gt; query A3.reduced.chunks ntoreturn:1 reslen:16486 nscanned:1 &lt;/p&gt;
{ files_id: ObjectId(&apos;4db702967cb3eb3ef05ac0d0&apos;), n: 0 }
&lt;p&gt;  nreturned:1 156ms&lt;br/&gt;
Thu May  5 18:40:54 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn137&amp;#93;&lt;/span&gt; query A3.reduced.chunks ntoreturn:1 reslen:16486 nscanned:1 &lt;/p&gt;
{ files_id: ObjectId(&apos;4db704387cb3eb3ef05ae31c&apos;), n: 0 }
&lt;p&gt;  nreturned:1 162ms&lt;br/&gt;
Thu May  5 18:41:34 &lt;span class=&quot;error&quot;&gt;&amp;#91;dur&amp;#93;&lt;/span&gt; lsn set 248202973&lt;br/&gt;
Thu May  5 18:42:34 &lt;span class=&quot;error&quot;&gt;&amp;#91;dur&amp;#93;&lt;/span&gt; lsn set 248262113&lt;br/&gt;
Thu May  5 18:43:34 &lt;span class=&quot;error&quot;&gt;&amp;#91;dur&amp;#93;&lt;/span&gt; lsn set 248321193&lt;br/&gt;
Thu May  5 18:44:34 &lt;span class=&quot;error&quot;&gt;&amp;#91;dur&amp;#93;&lt;/span&gt; lsn set 248380313&lt;br/&gt;
Thu May  5 18:45:29 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn140&amp;#93;&lt;/span&gt; query A3.reduced.chunks ntoreturn:1 reslen:16486 nscanned:1 &lt;/p&gt;
{ files_id: ObjectId(&apos;4dbfb06a7e56d0276b0140ec&apos;), n: 0 }
&lt;p&gt;  nreturned:1 157ms&lt;br/&gt;
Thu May  5 18:45:29 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn137&amp;#93;&lt;/span&gt; query A3.reduced.chunks ntoreturn:1 reslen:16486 nscanned:1 &lt;/p&gt;
{ files_id: ObjectId(&apos;4dbfb1207e56d0276b01520a&apos;), n: 0 }
&lt;p&gt;  nreturned:1 151ms&lt;br/&gt;
Thu May  5 18:45:34 &lt;span class=&quot;error&quot;&gt;&amp;#91;dur&amp;#93;&lt;/span&gt; lsn set 248439413&lt;br/&gt;
Thu May  5 18:46:20 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn139&amp;#93;&lt;/span&gt; query A3.reduced.chunks ntoreturn:1 reslen:8294 nscanned:1 &lt;/p&gt;
{ files_id: ObjectId(&apos;4dbdc2457cb3658faebf2d60&apos;), n: 0 }
&lt;p&gt;  nreturned:1 241ms&lt;br/&gt;
Thu May  5 18:46:20 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn142&amp;#93;&lt;/span&gt; query A3.reduced.chunks ntoreturn:1 reslen:16486 nscanned:1 &lt;/p&gt;
{ files_id: ObjectId(&apos;4dbdc4817cb3658faebf642b&apos;), n: 0 }
&lt;p&gt;  nreturned:1 294ms&lt;br/&gt;
Thu May  5 18:46:34 &lt;span class=&quot;error&quot;&gt;&amp;#91;dur&amp;#93;&lt;/span&gt; lsn set 248498673&lt;br/&gt;
Thu May  5 18:47:34 &lt;span class=&quot;error&quot;&gt;&amp;#91;dur&amp;#93;&lt;/span&gt; lsn set 248557923&lt;br/&gt;
Thu May  5 18:48:34 &lt;span class=&quot;error&quot;&gt;&amp;#91;dur&amp;#93;&lt;/span&gt; lsn set 248617173&lt;br/&gt;
Thu May  5 18:49:23 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn138&amp;#93;&lt;/span&gt; JS Error: out of memory&lt;br/&gt;
Thu May  5 18:49:23 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn138&amp;#93;&lt;/span&gt; query A3.$cmd ntoreturn:1 command: { $eval: &quot;var result_1304614162962_267 = db.ch.&amp;lt;hidden&amp;gt;.customizing....&quot;, args: {} } reslen:105 273ms&lt;br/&gt;
Thu May  5 18:49:23 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn139&amp;#93;&lt;/span&gt; query A3.$cmd ntoreturn:1 command: { count: &quot;reduced.files&quot;, query: {} } reslen:64 217ms&lt;br/&gt;
Thu May  5 18:49:23 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn138&amp;#93;&lt;/span&gt; CMD: drop A3.result_1304614162962_267&lt;br/&gt;
Thu May  5 18:49:23 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn138&amp;#93;&lt;/span&gt; JS Error: out of memory&lt;br/&gt;
Thu May  5 18:49:23 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn138&amp;#93;&lt;/span&gt; query A3.$cmd ntoreturn:1 command: { $eval: &quot;var result_1304614163504_267 = db.ch.&amp;lt;hidden&amp;gt;.customizing....&quot;, args: {} } reslen:105 273ms&lt;br/&gt;
Thu May  5 18:49:23 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn137&amp;#93;&lt;/span&gt; query A3.$cmd ntoreturn:1 command: { count: &quot;reduced.files&quot;, query: {} } reslen:64 207ms&lt;br/&gt;
Thu May  5 18:49:23 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn138&amp;#93;&lt;/span&gt; CMD: drop A3.result_1304614163504_267&lt;br/&gt;
Thu May  5 18:49:24 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn138&amp;#93;&lt;/span&gt; JS Error: out of memory&lt;br/&gt;
Thu May  5 18:49:24 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn138&amp;#93;&lt;/span&gt; query A3.$cmd ntoreturn:1 command: { $eval: &quot;var result_1304614164144_267 = db.ch.&amp;lt;hidden&amp;gt;.customizing....&quot;, args: {} } reslen:105 274ms&lt;br/&gt;
Thu May  5 18:49:24 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn137&amp;#93;&lt;/span&gt; query A3.$cmd ntoreturn:1 command: { count: &quot;reduced.files&quot;, query: {} } reslen:64 175ms&lt;br/&gt;
Thu May  5 18:49:24 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn139&amp;#93;&lt;/span&gt; query A3.$cmd ntoreturn:1 command: { count: &quot;reduced.files&quot;, query: {} } reslen:64 171ms&lt;br/&gt;
Thu May  5 18:49:24 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn138&amp;#93;&lt;/span&gt; CMD: drop A3.result_1304614164144_267&lt;br/&gt;
Thu May  5 18:49:25 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn138&amp;#93;&lt;/span&gt; JS Error: out of memory&lt;br/&gt;
Thu May  5 18:49:25 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn138&amp;#93;&lt;/span&gt; query A3.$cmd ntoreturn:1 command: { $eval: &quot;var result_1304614164996_267 = db.ch.&amp;lt;hidden&amp;gt;.customizing....&quot;, args: {} } reslen:105 278ms&lt;br/&gt;
Thu May  5 18:49:25 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn138&amp;#93;&lt;/span&gt; CMD: drop A3.result_1304614164996_267&lt;br/&gt;
Thu May  5 18:49:25 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn152&amp;#93;&lt;/span&gt; getmore local.oplog.$main cid:9071713290800334570 getMore: { ts: &lt;/p&gt;
{ $gte: new Date(5603151735213260801) }
&lt;p&gt; }  bytes:20 nreturned:0 3207ms&lt;br/&gt;
Thu May  5 18:49:30 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn137&amp;#93;&lt;/span&gt; JS Error: out of memory&lt;br/&gt;
Thu May  5 18:49:30 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn137&amp;#93;&lt;/span&gt; query A3.$cmd ntoreturn:1 command: { $eval: &quot;var result_1304614169801_258 = db.ch.&amp;lt;hidden&amp;gt;.customizing....&quot;, args: {} } reslen:105 268ms&lt;br/&gt;
Thu May  5 18:49:30 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn137&amp;#93;&lt;/span&gt; CMD: drop A3.result_1304614169801_258&lt;br/&gt;
Thu May  5 18:49:30 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn137&amp;#93;&lt;/span&gt; JS Error: out of memory&lt;br/&gt;
Thu May  5 18:49:30 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn137&amp;#93;&lt;/span&gt; query A3.$cmd ntoreturn:1 command: { $eval: &quot;var result_1304614170232_262 = db.ch.&amp;lt;hidden&amp;gt;.customizing....&quot;, args: {} } reslen:105 274ms&lt;br/&gt;
Thu May  5 18:49:30 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn137&amp;#93;&lt;/span&gt; CMD: drop A3.result_1304614170232_262&lt;br/&gt;
Thu May  5 18:49:34 &lt;span class=&quot;error&quot;&gt;&amp;#91;dur&amp;#93;&lt;/span&gt; lsn set 248676413&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                                        </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>5.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_13552" key="com.go2group.jira.plugin.crm:crm_generic_field">
                        <customfieldname>Case</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[[500A000000UabD6IAJ]]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 5 May 2011 16:53:44 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        12 years, 19 weeks 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_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            12 years, 19 weeks 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>antoine</customfieldvalue>
            <customfieldvalue>marcellanz</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrp0rj:</customfieldvalue>

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

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

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