<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:47:49 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>[CSHARP-4299] Mongodb Csharp Driver 2.13 -Service Monitor memory leak -holding up the execution context leading to huge amount of System.security.claim objects in memory even after GC collection -They finally lands up to gen 2 .</title>
                <link>https://jira.mongodb.org/browse/CSHARP-4299</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;h4&gt;&lt;a name=&quot;Summary&quot;&gt;&lt;/a&gt;Summary&lt;/h4&gt;
&lt;h4&gt;&lt;a name=&quot;Driverver2.13DotMemoryprofilershowsmemoryleaklargenumberofsystem.security.claimobject.&quot;&gt;&lt;/a&gt;Driver ver 2.13 -DotMemory profiler shows memory leak -large number of system.security.claim object .&lt;/h4&gt;
&lt;h4&gt;&lt;a name=&quot;HowtoReproduce&quot;&gt;&lt;/a&gt;How to Reproduce&lt;/h4&gt;

&lt;p&gt;&lt;em&gt;Servicemonitor holds up to the executionContext and it internally refers the security claims object .After the garbage collection , the claims object lives in to the memory heap -gen2 .&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Application does not create mongo client in signleton mode , instead per request mode.&lt;/em&gt;&lt;/p&gt;
&lt;h4&gt;&lt;a name=&quot;AdditionalBackground&quot;&gt;&lt;/a&gt;Additional Background&lt;/h4&gt;

&lt;p&gt;&lt;em&gt;Attached&lt;/em&gt;&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="2114793">CSHARP-4299</key>
            <summary>Mongodb Csharp Driver 2.13 -Service Monitor memory leak -holding up the execution context leading to huge amount of System.security.claim objects in memory even after GC collection -They finally lands up to gen 2 .</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="13203">Gone away</resolution>
                                        <assignee username="james.kovacs@mongodb.com">James Kovacs</assignee>
                                    <reporter username="engr.bhagwandas@gmail.com">bhagwan das Gupta</reporter>
                        <labels>
                    </labels>
                <created>Tue, 16 Aug 2022 07:53:11 +0000</created>
                <updated>Fri, 27 Oct 2023 19:56:02 +0000</updated>
                            <resolved>Thu, 8 Sep 2022 12:00:58 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="4811235" author="dbeng-pm-bot" created="Thu, 8 Sep 2022 12:00:59 +0000"  >&lt;p&gt;There hasn&apos;t been any recent activity on this ticket, so we&apos;re resolving it. Thanks for reaching out! Please feel free to comment on this if you&apos;re able to provide more information.&lt;/p&gt;</comment>
                            <comment id="4775703" author="JIRAUSER1270889" created="Thu, 25 Aug 2022 06:40:28 +0000"  >&lt;p&gt;Ok thanks&lt;/p&gt;</comment>
                            <comment id="4775423" author="james.kovacs" created="Thu, 25 Aug 2022 00:11:25 +0000"  >&lt;p&gt;Hi, &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=engr.bhagwandas%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;engr.bhagwandas@gmail.com&quot;&gt;engr.bhagwandas@gmail.com&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;In 2.15.0, we changed our SDAM and background workers to use dedicated threads rather than tasks. This was to resolve &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-3813&quot; title=&quot;Suppress execution context flow when initializing ServerMonitor&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-3813&quot;&gt;&lt;del&gt;CSHARP-3813&lt;/del&gt;&lt;/a&gt;, which appears to be the same issue. Please upgrade to 2.15.0 or newer driver (2.17.1 is latest as I write this) to verify that this issue is fixed.&lt;/p&gt;

&lt;p&gt;Sincerely,&lt;br/&gt;
James&lt;/p&gt;</comment>
                            <comment id="4754598" author="JIRAUSER1257742" created="Tue, 16 Aug 2022 15:48:09 +0000"  >&lt;p&gt;Thanks &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=engr.bhagwandas%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;engr.bhagwandas@gmail.com&quot;&gt;engr.bhagwandas@gmail.com&lt;/a&gt; for your report.&lt;br/&gt;
Please follow this ticket for further updates.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="1898880">CSHARP-3906</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1827772">CSHARP-3761</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1859057">CSHARP-3813</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="395965" name="mongo-1.png" size="167208" author="engr.bhagwandas@gmail.com" created="Tue, 16 Aug 2022 07:52:48 +0000"/>
                            <attachment id="395966" name="mongodb-1.png" size="102462" author="engr.bhagwandas@gmail.com" created="Tue, 16 Aug 2022 07:52:47 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i0p9dc:</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>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>