<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:37:03 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>[GODRIVER-1750] memory leak in topology.Server</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-1750</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;I&apos;ve noticed that my application is leaking memory in `toology.Server`. It think it&apos;s not closing the &quot;context cancel&quot; properly. See the attached screenshot (it&apos;s from the DataDog continuous profiling)&lt;/p&gt;

&lt;p&gt;It started to happen since I upgraded to the Go MongoDB driver v1.4.0. It was perfectly fine with v1.3.x.&lt;/p&gt;

&lt;p&gt;I&apos;m always using the same MongoDB &quot;client&quot; object, I&apos;m creating it at the application startup, and I continue to use the same object. I&apos;m not creating thousands of client objects.&lt;/p&gt;

&lt;p&gt;My application is a monitoring tool that fetches the &quot;current op&quot; periodically. It calls `RunCommand()` with `{&quot;currentOp&quot;:1, &quot;active&quot;: true}`. I suspect it could be related to this, because I don&apos;t notice similar issues in my other apps (that are running normal &quot;find&quot; commands).&lt;/p&gt;</description>
                <environment>Linux, Go 1.15</environment>
        <key id="1476109">GODRIVER-1750</key>
            <summary>memory leak in topology.Server</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="13201">Fixed</resolution>
                                        <assignee username="divjot.arora@mongodb.com">Divjot Arora</assignee>
                                    <reporter username="pierrre">Pierre Durand</reporter>
                        <labels>
                    </labels>
                <created>Wed, 16 Sep 2020 07:56:07 +0000</created>
                <updated>Sat, 28 Oct 2023 11:38:02 +0000</updated>
                            <resolved>Fri, 30 Apr 2021 16:16:46 +0000</resolved>
                                    <version>1.4.0</version>
                                    <fixVersion>1.5.2</fixVersion>
                                    <component>Server Discovery and Monitoring</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="3749105" author="xgen-internal-githook" created="Fri, 30 Apr 2021 16:16:26 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Divjot Arora&apos;, &apos;email&apos;: &apos;divjot.arora@10gen.com&apos;, &apos;username&apos;: &apos;divjotarora&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-1750&quot; title=&quot;memory leak in topology.Server&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-1750&quot;&gt;&lt;del&gt;GODRIVER-1750&lt;/del&gt;&lt;/a&gt; Ensure contexts are always cancelled during server monitoring (#654)&lt;br/&gt;
Branch: release/1.5&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/commit/f28d69f15d68afcbda6e30c4eec037bbffc78dc7&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/commit/f28d69f15d68afcbda6e30c4eec037bbffc78dc7&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3749099" author="xgen-internal-githook" created="Fri, 30 Apr 2021 16:15:32 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Divjot Arora&apos;, &apos;email&apos;: &apos;divjot.arora@10gen.com&apos;, &apos;username&apos;: &apos;divjotarora&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-1750&quot; title=&quot;memory leak in topology.Server&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-1750&quot;&gt;&lt;del&gt;GODRIVER-1750&lt;/del&gt;&lt;/a&gt; Ensure contexts are always cancelled during server monitoring (#654)&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/commit/29b591cfc35ee055912f94c857bc1b09300e16ec&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/commit/29b591cfc35ee055912f94c857bc1b09300e16ec&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3745002" author="divjot.arora" created="Wed, 28 Apr 2021 19:07:15 +0000"  >&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/pull/654&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/pull/654&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3700868" author="divjot.arora" created="Mon, 5 Apr 2021 15:25:47 +0000"  >&lt;p&gt;I think I&apos;ve narrowed down the issue - the context may not be cancelled if we fail to create the heartbeat connection. In this case, the next iteration will try to create a new connection and context, which can lead to a context leak. This also explains my inability to reproduce as it would only occur if the target server were unreachable for a long period of time.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=noobfriend%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;noobfriend@gmail.com&quot;&gt;noobfriend@gmail.com&lt;/a&gt;&#160;Thank you for your patience and code samples while we&apos;ve investigated this ticket. I&apos;m going to mark it with fixVersion 1.5.2 and put it into the &quot;Scheduled&quot; state so that we can release a fix in our next patch release.&lt;/p&gt;</comment>
                            <comment id="3684006" author="divjot.arora" created="Thu, 25 Mar 2021 15:56:14 +0000"  >&lt;p&gt;Thank you for the new code changes. I&apos;ll continue to look at this today and next week.&lt;/p&gt;</comment>
                            <comment id="3683193" author="JIRAUSER1258995" created="Thu, 25 Mar 2021 07:58:36 +0000"  >&lt;p&gt;Hi Divjot Arora,&lt;/p&gt;

&lt;p&gt;Thanks for the update. I found the change would leads to some side effects about connection handling, too.&#160;&lt;br/&gt;
Here is my quick workaround that only affect to heartbeat connection, although I think it could be also buggy...&lt;br/&gt;
&lt;a href=&quot;https://github.com/flf2ko/mongo-go-driver/compare/v1.4.4...flf2ko:monitor&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/flf2ko/mongo-go-driver/compare/v1.4.4...flf2ko:monitor&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3677938" author="divjot.arora" created="Mon, 22 Mar 2021 22:21:37 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=noobfriend%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;noobfriend@gmail.com&quot;&gt;noobfriend@gmail.com&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;I wanted to provide a quick update. I don&apos;t think we want to call &quot;ProcessHandshakeError&quot; here as that function is meant for processing errors in pooled connections and errors in monitoring connections are handled separately. In the next few days, I&apos;ll dig deeper and try to figure out why calling ProcessHandshakeError reduces the memory pressure and how we can get the same effect without actually calling that function.&lt;/p&gt;</comment>
                            <comment id="3659117" author="divjot.arora" created="Thu, 11 Mar 2021 15:31:03 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=noobfriend%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;noobfriend@gmail.com&quot;&gt;noobfriend@gmail.com&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Thanks for investigating so thoroughly. I&apos;m going to put this ticket in an &quot;Investigating&quot; state to give myself some time to look over your comments and the commit you linked. Based on that, we&apos;ll try to schedule it to be worked on ASAP so we can fix this in our next patch release.&lt;/p&gt;

&lt;p&gt;&amp;#8211; Divjot&lt;/p&gt;</comment>
                            <comment id="3658595" author="JIRAUSER1258995" created="Thu, 11 Mar 2021 09:23:29 +0000"  >&lt;p&gt;I tested by a simple change and run my server for two days.&lt;br/&gt;
The memory is used by a fixed amount. I think my guess should be correct.&lt;/p&gt;

&lt;p&gt;Change I made:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/flf2ko/mongo-go-driver/commit/25a25c3f2f75616f4e318e641c41cf49927f6b56&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/flf2ko/mongo-go-driver/commit/25a25c3f2f75616f4e318e641c41cf49927f6b56&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Inuse space:&lt;/p&gt;


&lt;p&gt;&lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;https://jira.mongodb.org/secure/attachment/304382/304382_image-2021-03-11-17-22-19-452.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt;&lt;/p&gt;</comment>
                            <comment id="3656144" author="JIRAUSER1258995" created="Wed, 10 Mar 2021 03:55:39 +0000"  >&lt;p&gt;Hi, I have a guess about this issue and still work on verifying it.&lt;br/&gt;
Here is my guess:&lt;/p&gt;

&lt;p&gt;1.&#160;&lt;/p&gt;

&lt;p&gt;If `(*Connection).processInitializationError` happened in heartbeat goroutine, it will use `(*Connection).config.errorHandlingCallback` to do cancelling.&lt;/p&gt;
&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;go.mongodb.org/mongo-driver/x/mongo/driver/topology.(*connection).processInitializationError&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;go.mongodb.org/mongo-driver/x/mongo/driver/topology.(*connection).connect&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;go.mongodb.org/mongo-driver/x/mongo/driver/topology.(*Server).setupHeartbeatConnection&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;
&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/blob/v1.4.6/x/mongo/driver/topology/connection.go#L131&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/blob/v1.4.6/x/mongo/driver/topology/connection.go#L131&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;2.&#160;&lt;/p&gt;

&lt;p&gt;In this case, `(*Connection).config` is derived from `(*Server).createConnection`, which is without `withErrorHandlingCallback(s.ProcessHandshakeError)` ConnectionOption.&lt;/p&gt;

&lt;p&gt;Note that in pool case, it defines the callback in &lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/blob/v1.4.6/x/mongo/driver/topology/server.go#L178,&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/blob/v1.4.6/x/mongo/driver/topology/server.go#L178&lt;/a&gt;&#160;. But in heartbeat case, this ConnectionOption is not included in `(*Server).cfg`&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;
&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;go.mongodb.org/mongo-driver/x/mongo/driver/topology.(*Server).createConnection&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;go.mongodb.org/mongo-driver/x/mongo/driver/topology.(*Server).setupHeartbeatConnection&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;
&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/blob/v1.4.6/x/mongo/driver/topology/server.go#L579&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/blob/v1.4.6/x/mongo/driver/topology/server.go#L579&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;3.&#160;&lt;/p&gt;

&lt;p&gt;Therefore, heartbeatCtxCancel won&apos;t be called when `processInitializationError` is happened&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;
&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;s.heartbeatLock.Lock()    &lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;s.heartbeatCtx, s.heartbeatCtxCancel = context.WithCancel(s.globalCtx)    &lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;s.conn = conn    s.heartbeatLock.Unlock()&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&amp;nbsp;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;s.conn.connect(s.heartbeatCtx)&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;
&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/blob/v1.4.6/x/mongo/driver/topology/server.go#L586-L590&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/blob/v1.4.6/x/mongo/driver/topology/server.go#L586-L590&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="3654095" author="backlog-server-pm" created="Tue, 9 Mar 2021 12:00:00 +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="3629451" author="JIRAUSER1258776" created="Tue, 23 Feb 2021 06:15:13 +0000"  >&lt;p&gt;yes, it&apos;s a long-running application with slow memory leak. We will keep investigating the issue. We already found that it would only happen when app connects to a replica set cluster which across different data center. (No issue if connect to local DB cluster)&lt;/p&gt;</comment>
                            <comment id="3628133" author="divjot.arora" created="Mon, 22 Feb 2021 17:39:29 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=b98705002%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;b98705002@gmail.com&quot;&gt;b98705002@gmail.com&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Thanks for the attached memory profile. Can you provide more information on how this profile was taken? Is this a snapshot from a long-running application? Additionally, is it possible for you to provide a Go program that we can run which illustrates the memory issue?&lt;/p&gt;

&lt;p&gt;&amp;#8211; Divjot&lt;/p&gt;</comment>
                            <comment id="3626839" author="JIRAUSER1258776" created="Mon, 22 Feb 2021 01:58:16 +0000"  >&lt;p&gt;Hi, I also encounter this issue from profiling in version v1.4.x&#160;&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;https://jira.mongodb.org/secure/attachment/300997/300997_2021-02-22+09-57-34+%E7%9A%84%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt;&lt;/p&gt;</comment>
                            <comment id="3440376" author="esha.bhargava" created="Mon, 12 Oct 2020 20:12:34 +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 comment on this ticket if you can provide the requested information.&lt;/p&gt;</comment>
                            <comment id="3405366" author="divjot.arora" created="Tue, 22 Sep 2020 15:19:35 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=pierrre&quot; class=&quot;user-hover&quot; rel=&quot;pierrre&quot;&gt;pierrre&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;I&apos;m trying to look into this, but I haven&apos;t been able to reproduce it so far. v1.4.0 of the driver did introduce a new heartbeating protocol that&apos;s used by the driver&apos;s internal monitoring routine. The implementation of that protocol uses contexts and cancellation functions to signal some state changes. However, I believe the cancellation function is always called for the created contexts, so there should not be a memory leak. In your testing, do you see memory constantly increase, or is it that your application is using more memory than it did before but it isn&apos;t increasing as the application runs? Also, do you have a small reproducible example that we could run against a MongoDB server to debug this issue?&lt;/p&gt;

&lt;p&gt;&amp;#8211; Divjot&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="300997" name="2021-02-22 09-57-34 &#30340;&#34722;&#24149;&#25847;&#22294;.png" size="59015" author="b98705002@gmail.com" created="Mon, 22 Feb 2021 01:57:59 +0000"/>
                            <attachment id="278570" name="Capture d&#8217;&#233;cran du 2020-09-16 09-47-32.png" size="116053" author="pierrre" created="Wed, 16 Sep 2020 07:51:37 +0000"/>
                            <attachment id="304382" name="image-2021-03-11-17-22-19-452.png" size="71409" author="noobfriend@gmail.com" created="Thu, 11 Mar 2021 09:22:20 +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|hxochr:</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>