<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:53:37 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-20239] Built-in sampling heap profiler</title>
                <link>https://jira.mongodb.org/browse/SERVER-20239</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;It would be useful to have a built-in facility for debugging memory consumption issues in mongod, as this has become an increasingly frequent problem, both in the field and in development. &lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;built in to mongod - no additional software dependencies need to be installed. This is important pariculary for diagnosing memory problems in the field, but also will make in-house diagnosis simpler.&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;enabled in one of the following ways (in decreasing order of preference)
	&lt;ul&gt;
		&lt;li&gt;dynamically by a runtime command&lt;/li&gt;
		&lt;li&gt;at startup time by a mongod startup option&lt;/li&gt;
		&lt;li&gt;by compiling a special version of mongod (using flags to scons defined for the purpose)&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;performance impact should be the best achievable of the following (rough guesses at required performance impact in parens):
	&lt;ul&gt;
		&lt;li&gt;small enough that the facility could be left on indefinitely in production (&amp;lt;1% impact)&lt;/li&gt;
		&lt;li&gt;small enough that the facility could be turned on for a limited time in production (&amp;lt;10% impact)&lt;/li&gt;
		&lt;li&gt;small enough that we could ask a customer to use it while reproducing a memory issue in a test environment (&amp;lt;50% impact)&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;the facility should be able to diagnose, identifying by source code call-site the source of the memory consumption, the following classes of issues:
	&lt;ul&gt;
		&lt;li&gt;memory leaks - memory not deallocated at exit&lt;/li&gt;
		&lt;li&gt;excess or unexpected memory consumption that is not a leak as such, that is, the memory is still tracked and would be freed on exit&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
        <key id="227969">SERVER-20239</key>
            <summary>Built-in sampling heap profiler</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</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="bruce.lucas@mongodb.com">Bruce Lucas</assignee>
                                    <reporter username="bruce.lucas@mongodb.com">Bruce Lucas</reporter>
                        <labels>
                            <label>code-only</label>
                    </labels>
                <created>Tue, 1 Sep 2015 16:23:44 +0000</created>
                <updated>Sun, 20 Nov 2016 21:12:31 +0000</updated>
                            <resolved>Fri, 29 Jul 2016 15:51:01 +0000</resolved>
                                                    <fixVersion>3.2.9</fixVersion>
                    <fixVersion>3.3.11</fixVersion>
                                    <component>Diagnostics</component>
                    <component>WiredTiger</component>
                                        <votes>0</votes>
                                    <watches>14</watches>
                                                                                                                <comments>
                            <comment id="1342925" author="xgen-internal-githook" created="Mon, 1 Aug 2016 13:47:39 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;bdlucas1&apos;, u&apos;name&apos;: u&apos;Bruce Lucas&apos;, u&apos;email&apos;: u&apos;bdlucas1@users.noreply.github.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-20239&quot; title=&quot;Built-in sampling heap profiler&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-20239&quot;&gt;&lt;del&gt;SERVER-20239&lt;/del&gt;&lt;/a&gt; fix default value for enabled parameter&lt;br/&gt;
Branch: v3.2&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/c7eadf68a602d5c2cb1916cb6ddfb9b531e32c42&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/c7eadf68a602d5c2cb1916cb6ddfb9b531e32c42&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1340391" author="xgen-internal-githook" created="Thu, 28 Jul 2016 19:11:53 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;bdlucas1&apos;, u&apos;name&apos;: u&apos;Bruce Lucas&apos;, u&apos;email&apos;: u&apos;bruce.lucas@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-20239&quot; title=&quot;Built-in sampling heap profiler&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-20239&quot;&gt;&lt;del&gt;SERVER-20239&lt;/del&gt;&lt;/a&gt; built-in sampling heap profiler&lt;/p&gt;

&lt;p&gt;backport of 08de471f2a3c61a6e1f1f88f389ac108ec2cc963&lt;br/&gt;
Branch: v3.2&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/5155abe4539c37adfd856941eeca5bc55f3aee73&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/5155abe4539c37adfd856941eeca5bc55f3aee73&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1340145" author="xgen-internal-githook" created="Thu, 28 Jul 2016 16:46:23 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;benety&apos;, u&apos;name&apos;: u&apos;Benety Goh&apos;, u&apos;email&apos;: u&apos;benety@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-20239&quot; title=&quot;Built-in sampling heap profiler&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-20239&quot;&gt;&lt;del&gt;SERVER-20239&lt;/del&gt;&lt;/a&gt; fixed lint&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/da26506b04372d8881288788c9eaa85f34fee671&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/da26506b04372d8881288788c9eaa85f34fee671&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1339746" author="xgen-internal-githook" created="Thu, 28 Jul 2016 14:26:15 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;bdlucas1&apos;, u&apos;name&apos;: u&apos;Bruce Lucas&apos;, u&apos;email&apos;: u&apos;bruce.lucas@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-20239&quot; title=&quot;Built-in sampling heap profiler&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-20239&quot;&gt;&lt;del&gt;SERVER-20239&lt;/del&gt;&lt;/a&gt; built-in sampling heap profiler&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/08de471f2a3c61a6e1f1f88f389ac108ec2cc963&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/08de471f2a3c61a6e1f1f88f389ac108ec2cc963&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1134128" author="bruce.lucas@10gen.com" created="Wed, 13 Jan 2016 19:59:27 +0000"  >&lt;p&gt;Updated patch corrects a couple problems:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;print stats for large allocations (larger than largest bucket size)&lt;/li&gt;
	&lt;li&gt;fix bug that caused entire heap not to be traversed in some cases&lt;/li&gt;
&lt;/ul&gt;
</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="259355">SERVER-22224</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="259355">SERVER-22224</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="291127">SERVER-24375</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="105116" name="tcmalloc-tagged-allocations.diff" size="18475" author="bruce.lucas@mongodb.com" created="Wed, 13 Jan 2016 19:59:27 +0000"/>
                    </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_12451" key="com.atlassian.jira.plugin.system.customfieldtypes:multiversion">
                        <customfieldname>Backport Completed</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="17070">3.2.9</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 13 Jan 2016 14:37:55 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            7 years, 28 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_16465" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Linked BF Score</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>bruce.lucas@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrkvr3:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hret7r:</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_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>
                                    <customfieldvalue><![CDATA[bruce.lucas@mongodb.com]]></customfieldvalue>
    

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11861" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>User Summary</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="11856"><![CDATA[Not Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrkw9z:</customfieldvalue>

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