<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 09:00:56 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>[JAVA-3979] Mongo Connection pooling is going beyond the expected limit </title>
                <link>https://jira.mongodb.org/browse/JAVA-3979</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;I am new to java and Mongo I am trying to set a max pool size of 100&lt;/p&gt;

&lt;p&gt;I am running a Load test in localhost I am seeing that the pool is getting re-used without any issues but the max pool size is not following the pool size I have given&lt;/p&gt;

&lt;p&gt;for 10k calls there are 300 connections in the pool where I have given only 100&lt;/p&gt;

&lt;p&gt;not sure how this is happening&lt;/p&gt;

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

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

&lt;p&gt;Attached is the code&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="1607079">JAVA-3979</key>
            <summary>Mongo Connection pooling is going beyond the expected limit </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="13203">Gone away</resolution>
                                        <assignee username="ross@mongodb.com">Ross Lawley</assignee>
                                    <reporter username="nallas.sriram@gmail.com">Sriram Nalla</reporter>
                        <labels>
                    </labels>
                <created>Mon, 1 Feb 2021 09:49:18 +0000</created>
                <updated>Fri, 27 Oct 2023 19:48:29 +0000</updated>
                            <resolved>Mon, 22 Feb 2021 12:00:00 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="3627170" author="backlog-server-pm" created="Mon, 22 Feb 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="3603817" author="ross@10gen.com" created="Mon, 8 Feb 2021 09:09:39 +0000"  >&lt;p&gt;That would be great - thank you.&lt;/p&gt;</comment>
                            <comment id="3603808" author="JIRAUSER1258502" created="Mon, 8 Feb 2021 09:01:55 +0000"  >&lt;p&gt;Hi Ross,&lt;/p&gt;

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

&lt;p&gt;I Will share a git link if it&apos;s ok but I need to pull the code from the original code and create a sample repo to do that it may take some time will that be ok&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="3598730" author="ross@10gen.com" created="Thu, 4 Feb 2021 09:06:53 +0000"  >&lt;p&gt;Hi Sriram Nalla,&lt;/p&gt;

&lt;p&gt;That doesn&apos;t sound right or as expected. Could you provide more detail?  A test case to reproduce the error.  Ideally, a &lt;a href=&quot;https://stackoverflow.com/help/minimal-reproducible-example&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;minimal reproducible example&lt;/a&gt; would help as I could replicate the bug and use it as a test case for the fix.&lt;/p&gt;

&lt;p&gt;All the best,&lt;/p&gt;

&lt;p&gt;Ross&lt;/p&gt;</comment>
                            <comment id="3598631" author="JIRAUSER1258502" created="Thu, 4 Feb 2021 04:25:00 +0000"  >&lt;p&gt;I tried with Maxpool size as 10 still its behaving the same way taking 250-300 connections&#160;&lt;/p&gt;</comment>
                            <comment id="3596988" author="ross@10gen.com" created="Wed, 3 Feb 2021 15:25:12 +0000"  >&lt;p&gt;Hi there, thank you for reaching out. &lt;/p&gt;

&lt;p&gt;As this sounds like a support issue, I wanted to give you some resources to get this question answered more quickly:&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Our MongoDB support portal, located at &lt;a href=&quot;https://support.mongodb.com/welcome&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;support.mongodb.com&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;Our MongoDB community portal, located &lt;a href=&quot;https://developer.mongodb.com/community/forums/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;If you are an Atlas customer, there is free support offered 24/7 in the lower right hand corner of the UI&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Just in case you have already opened a support case and are not receiving sufficient help, please let me know and I can facilitate escalating your issue.&lt;/p&gt;

&lt;p&gt;The number of connections being 3 x max pool size leads me to believe you are querying a 3 node replicaset. Where each node could potentially take up to max pool size. &lt;/p&gt;

&lt;p&gt;Thank you!&lt;/p&gt;

&lt;p&gt;Ross&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="297958" name="code.java" size="2954" author="nallas.sriram@gmail.com" created="Mon, 1 Feb 2021 09:50:04 +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|hr3o2f:</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>