<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:37:24 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-636] Mongo authentication issues under load - currently on MongoDB 2.2, Mongo drivers </title>
                <link>https://jira.mongodb.org/browse/CSHARP-636</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>
&lt;p&gt;CPU usage is around 50% at system level, memory is under pressure and I notice 95% memory being used in a few scenarios. Number of connections spike to 5000 or more with 75% doing reads and remaining attempting to write.&lt;br/&gt;
I am not sure why I am running into this issue under load.&lt;/p&gt;


&lt;p&gt;Too many threads are already waiting for a connection&lt;br/&gt;
&#8226;	Errors&lt;br/&gt;
&#8226;	About&lt;br/&gt;
MongoDB.Driver.MongoConnectionExceptionToo many threads are already waiting for a connection&lt;br/&gt;
MongoDB.Driver.MongoConnectionException: Too many threads are already waiting for a connection&lt;br/&gt;
   at MongoDB.Driver.Internal.MongoConnectionPool.AcquireConnection(MongoDatabase database)&lt;br/&gt;
   at MongoDB.Driver.MongoServer.AcquireConnection(MongoDatabase database, Boolean slaveOk)&lt;br/&gt;
   at MongoDB.Driver.MongoServer.RequestStart(MongoDatabase initialDatabase)&lt;br/&gt;
   at RelayHealth.Hl7.Vortex.ProcessResolvePatientRequest.receiveMessage_Old(Guid token, HttpContextBase context, String documentidentifier) in f:\Builds\HotFix\RelayHealth\dev\MiddleTier\HTTPModule\src\RelayHea&lt;/p&gt;


&lt;p&gt;************************************&lt;/p&gt;

&lt;p&gt;User=System&lt;/p&gt;


&lt;p&gt;TimeUtc=2012-09-25T15:04:43.0948183-07:00&lt;/p&gt;



&lt;p&gt;At this point I am not certain who can help with this. Under load we ran MongoDB issues multiple times so far. I think I can attempt to reproduce some of the issues occasionally if not always.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Praveen&lt;/p&gt;


&lt;p&gt;From: Evans, Martin P &lt;br/&gt;
Sent: Tuesday, September 25, 2012 3:01 PM&lt;br/&gt;
To: Veldanda, Praveen; *DL RHC SCM&lt;br/&gt;
Cc: Gutierrez, Ernesto; Pascual, Gerard; Cordell, Ron; *DL RHC P&amp;amp;R; Sivakumar, Rajesh; Kumarasamy, Senthil; Hill, Gennifer C; Akemon, Scott; Snow, Matthew&lt;br/&gt;
Subject: RE: MongoDB connectivity issues in performance environemnt since morning&lt;/p&gt;

&lt;p&gt;The ticket you logged refered to socket errors. This is a transport-level connectivity issue. Please assign to the appropriate team.&lt;/p&gt;

&lt;p&gt;From: Veldanda, Praveen &lt;br/&gt;
Sent: Tuesday, September 25, 2012 3:00 PM&lt;br/&gt;
To: Evans, Martin P; *DL RHC SCM&lt;br/&gt;
Cc: Gutierrez, Ernesto; Pascual, Gerard; Cordell, Ron; *DL RHC P&amp;amp;R; Sivakumar, Rajesh; Kumarasamy, Senthil; Hill, Gennifer C; Akemon, Scott; Snow, Matthew&lt;br/&gt;
Subject: RE: MongoDB connectivity issues in performance environemnt since morning&lt;/p&gt;

&lt;p&gt;Hi Martin,&lt;br/&gt;
Please look at Mantis# 0054320. Gerard cannot access any MongoDB node in Performance environment and replica set needs to be rebuilt as per him.&lt;br/&gt;
Matt/ Rajesh &#8211; I will keep you posted on updates regarding environment.&lt;br/&gt;
Thanks&lt;/p&gt;

&lt;p&gt;From: Veldanda, Praveen &lt;br/&gt;
Sent: Tuesday, September 25, 2012 1:01 PM&lt;br/&gt;
To: Gutierrez, Ernesto; Pascual, Gerard&lt;br/&gt;
Cc: Cordell, Ron; *DL RHC P&amp;amp;R; Sivakumar, Rajesh; Kumarasamy, Senthil; Hill, Gennifer C&lt;br/&gt;
Subject: RE: MongoDB connectivity issues in performance environemnt since morning&lt;/p&gt;


&lt;p&gt;I noticed RelayHealth Mongo service is not running on Mongo servers in perf. Environment and started them. These are set to start manually (should they be automatic??).&lt;/p&gt;

&lt;p&gt;Below are the errors after I restarted this service:&lt;/p&gt;

&lt;p&gt;Too many threads are already waiting for a connection&lt;br/&gt;
&#8226;	Errors&lt;br/&gt;
&#8226;	About&lt;br/&gt;
MongoDB.Driver.MongoConnectionExceptionToo many threads are already waiting for a connection&lt;br/&gt;
MongoDB.Driver.MongoConnectionException: Too many threads are already waiting for a connection&lt;br/&gt;
   at MongoDB.Driver.Internal.MongoConnectionPool.AcquireConnection(MongoDatabase database)&lt;br/&gt;
   at MongoDB.Driver.MongoServer.AcquireConnection(MongoDatabase database, Boolean slaveOk)&lt;br/&gt;
   at MongoDB.Driver.MongoServer.RequestStart(MongoDatabase initialDatabase)&lt;br/&gt;
   at RelayHealth.Hl7.Vortex.ProcessResolvePatientRequest.receiveMessage_Old(Guid token, HttpContextBase context, String documentidentifier) in f:\Builds\HotFix\RelayHealth\dev\MiddleTier\HTTPModule\src\RelayHea&lt;/p&gt;


&lt;p&gt;A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond&lt;br/&gt;
&#8226;	Errors&lt;br/&gt;
&#8226;	About&lt;br/&gt;
System.Net.Sockets.SocketExceptionA connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond&lt;br/&gt;
System.IO.IOException: Unable to read data from the transport connection: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. ---&amp;gt; System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond&lt;br/&gt;
   at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)&lt;br/&gt;
   at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)&lt;br/&gt;
   &amp;#8212; End of inner exception stack trace &amp;#8212;&lt;br/&gt;
   at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)&lt;br/&gt;
   at MongoDB.Bson.IO.BsonBuffer.LoadFrom(Stream stream, Int32 count)&lt;br/&gt;
   at MongoDB.Bson.IO.BsonBuffer.LoadFrom(Stream stream)&lt;br/&gt;
   at MongoDB.Driver.Internal.MongoConnection.ReceiveMessage&lt;span class=&quot;error&quot;&gt;&amp;#91;TDocument&amp;#93;&lt;/span&gt;(MongoServer server)&lt;br/&gt;
   at MongoDB.Driver.Internal.MongoConnection.RunCommand(MongoServer server, String collectionName, QueryFlags queryFlags, CommandDocument command)&lt;br/&gt;
   at MongoDB.Driver.Internal.MongoConnection.Authenticate(MongoServer server, String databaseName, MongoCredentials credentials)&lt;br/&gt;
   at MongoDB.Driver.Internal.MongoConnection.CheckAuthentication(MongoServer server, MongoDatabase database)&lt;br/&gt;
   at MongoDB.Driver.MongoServer.AcquireConnection(MongoDatabase database, Boolean slaveOk)&lt;br/&gt;
   at MongoDB.Driver.MongoServer.RequestStart(MongoDatabase initialDatabase)&lt;br/&gt;
   at RelayHealth.Hl7.Vortex.ProcessResolvePatientRequest.receiveMessage_Old(Guid token, HttpContextBase context, String documentidentifier) in f:\Builds\HotFix\RelayHealth\dev\MiddleTier\HTTPModule\src\RelayHealth.Hl7.Vortex\ProcessResolvePatientRequest.cs:line 317&lt;/p&gt;

&lt;p&gt;***********************&lt;/p&gt;</description>
                <environment>Windows 2008 OS R2 X64 edition ; 4 CPU, 16 GB mongo nodes in a non-production environment</environment>
        <key id="57662">CSHARP-636</key>
            <summary>Mongo authentication issues under load - currently on MongoDB 2.2, Mongo drivers </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="9">Done</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="praveen">praveen veldanda</reporter>
                        <labels>
                    </labels>
                <created>Tue, 27 Nov 2012 20:20:56 +0000</created>
                <updated>Thu, 16 Jan 2014 11:00:34 +0000</updated>
                            <resolved>Mon, 4 Mar 2013 19:27:15 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="483015" author="peter.aberline@rms.com" created="Thu, 16 Jan 2014 11:00:34 +0000"  >&lt;p&gt;Hi Praveen&lt;/p&gt;

&lt;p&gt;What versions of the server and driver were you experiencing this issue with? And what versions are you now using which resolve the problem?&lt;/p&gt;

&lt;p&gt;Thanks&lt;br/&gt;
Peter&lt;/p&gt;</comment>
                            <comment id="281122" author="praveen" created="Mon, 4 Mar 2013 19:33:01 +0000"  >&lt;p&gt;Hey Craig,&lt;br/&gt;
Can you remove this thread since I noticed there are emailids and names of my colleagues?&lt;br/&gt;
This problem is resolved since I moved to latest version of Mongo drivers and DB.&lt;br/&gt;
Thanks.&lt;/p&gt;
</comment>
                            <comment id="224544" author="craiggwilson" created="Wed, 26 Dec 2012 14:16:01 +0000"  >&lt;p&gt;Praveen - &lt;br/&gt;
  Any further information on this?  It&apos;s been a while and we&apos;d like to close this ticket if it is no longer an issue.&lt;/p&gt;</comment>
                            <comment id="202477" author="craiggwilson" created="Thu, 29 Nov 2012 20:02:00 +0000"  >&lt;p&gt;Praveen,&lt;br/&gt;
  1) What version of the driver are you using?&lt;br/&gt;
  2) You mention CPU at 50% and connections at 5000?  Is this server side (mongod or mongos) or client-side (C# driver)?&lt;br/&gt;
  3) Have you adjusted the connection pool size defaults?  This defaults to 100 connections and allows 100 connections to be waiting for a connection.  Therefore, the 201st connection would throw this exception if the defaults have not been adjusted?&lt;br/&gt;
  4) I notice you are using RequestStart.  Are you disposing of the RequestStart?  If you don&apos;t dispose of this, then you will quickly run out of connections.&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;using(server.RequestStart())&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;{&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;    // do your thing...&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;}&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;Let me know...&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </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|hrksin:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>35081</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>