<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:21:31 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-9816] inconsistent connection count</title>
                <link>https://jira.mongodb.org/browse/SERVER-9816</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Executing &quot;mongostat --port 27017&quot; shows the number of connections is 15K,but running &quot;netstat -na | wc -l&quot; to count the connections, the result is only 95.&lt;br/&gt;
Why are the two results inconsistent?&lt;/p&gt;</description>
                <environment>Red Hat Enterprise Linux Server release 6.3 (Santiago)</environment>
        <key id="77154">SERVER-9816</key>
            <summary>inconsistent connection count</summary>
                <type id="6" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14720&amp;avatarType=issuetype">Question</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="4">Incomplete</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="sorghum">sorghum</reporter>
                        <labels>
                            <label>connection</label>
                    </labels>
                <created>Thu, 30 May 2013 13:07:41 +0000</created>
                <updated>Wed, 10 Dec 2014 23:19:05 +0000</updated>
                            <resolved>Fri, 31 May 2013 12:48:53 +0000</resolved>
                                    <version>2.2.2</version>
                                                    <component>Diagnostics</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="349767" author="scotthernandez" created="Fri, 31 May 2013 12:48:53 +0000"  >&lt;p&gt;I&apos;m glad to hear your production system is stable again.&lt;/p&gt;

&lt;p&gt;When you setup that test system and create a new issue if you find useful information please make sure to include client details and your connection options (esp. if you set a socket/read timeout as those settings can dramatically affect connections). Also if you have private data please feel free to create a Community Private (SUPPORT) issue so that it is not public.&lt;/p&gt;

&lt;p&gt;Linking this issue with the new one can be done after you create the new issue by you, or us.&lt;/p&gt;</comment>
                            <comment id="349702" author="sorghum" created="Fri, 31 May 2013 10:15:15 +0000"  >&lt;p&gt;db.serverStatus() shows the value of connections.current is closed to the number given by mongostat.&lt;br/&gt;
netstat -na illustrates the output like follows:&lt;/p&gt;

&lt;p&gt;tcp        0      0 0.0.0.0:27018               0.0.0.0:*                   LISTEN      &lt;br/&gt;
tcp        0      0 xx.xx.xx.xx:27018          yy.yy.yy.yy:50249            ESTABLISHED &lt;br/&gt;
tcp        0      0 xx.xx.xx.xx:27018          yy.yy.yy.yy:49775            ESTABLISHED &lt;br/&gt;
tcp        0      0 xx.xx.xx.xx:27018          yy.yy.yy.yy:33696           ESTABLISHED &lt;br/&gt;
tcp        0      0 xx.xx.xx.xx:27018          yy.yy.yy.yy:34812           ESTABLISHED &lt;br/&gt;
tcp        0      0 xx.xx.xx.xx:27018          yy.yy.yy.yy:57724           ESTABLISHED &lt;br/&gt;
tcp        0      0 xx.xx.xx.xx:27018          yy.yy.yy.yy:57991          ESTABLISHED &lt;/p&gt;

&lt;p&gt;-------------------------------&lt;/p&gt;

&lt;p&gt;It&apos;s a production enviroment, and it works fine now. So I cannot give you the result of currentOp and serverStatus.&lt;br/&gt;
I will setup a test cluster to reproduce this problem, and give you more details.&lt;/p&gt;

&lt;p&gt;Right now, I doubt the reason is the &quot;locked db&quot;. When the locked percentage is low, the results are consistent. When the percentage is extremely high, the results differ greatly with each other.&lt;/p&gt;</comment>
                            <comment id="349539" author="scotthernandez" created="Fri, 31 May 2013 03:30:43 +0000"  >&lt;p&gt;On the primary can you run &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;db.currentOp(&lt;/span&gt;&lt;span style=&quot;color: #006699; font-weight: bold; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;true&lt;/span&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;   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;db.serverStatus()&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt; and the &lt;tt&gt;netstat -na&lt;/tt&gt; so we can see all the numbers.&lt;/p&gt;

&lt;p&gt;If you want this info to be private we can move this issue someplace less public.&lt;/p&gt;</comment>
                            <comment id="349469" author="sorghum" created="Fri, 31 May 2013 01:18:12 +0000"  >&lt;p&gt;The architecture of mongodb is a replicaset cluster with 3 nodes (primary, secondary,and arbiter)&lt;br/&gt;
The following are the output of the two commands:&lt;/p&gt;

&lt;p&gt;Primary:&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;root@mongo-online01 ~&amp;#93;&lt;/span&gt;# netstat -nat | grep xx.xx.xx.xx:27018 | wc -l&lt;br/&gt;
649&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;root@mongo-online01 ~&amp;#93;&lt;/span&gt;# mongostat --port 27018 -u root -p root&lt;br/&gt;
connected to: 127.0.0.1:27018&lt;br/&gt;
insert  query update delete getmore command flushes mapped  vsize    res faults        locked db idx miss %     qr|qw   ar|aw  netIn netOut  conn    set repl       time &lt;br/&gt;
    10      0      1      1      22      70       0  26.1g  70.6g  1.54g      3 my_collection:111.0%          0   17401|0     1|0     9k    25k 17463 root  PRI   09:29:40 &lt;br/&gt;
     8      1      1      6      14     130       0  26.1g  70.6g  1.54g      1 my_collection:107.2%          0   17400|0     0|1    13k    38k 17461 root  PRI   09:29:41 &lt;br/&gt;
     6      1      1      7      12     135       0  26.1g  70.6g  1.62g      2 my_collection:100.2%          0   17401|0     1|0    13k    37k 17462 root  PRI   09:29:42 &lt;br/&gt;
     3      2      1      5       8      88       0  26.1g  70.6g  1.43g      4  my_collection:85.0%          0   17404|0     1|0     9k    25k 17465 root  PRI   09:29:43 &lt;/p&gt;

&lt;p&gt;--------------------------------------------------------------------------------------------------------------------------------------------------&lt;/p&gt;

&lt;p&gt;Secondary:	 &lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;root@mongo-online02 ~&amp;#93;&lt;/span&gt;# netstat -nat | grep yy.yy.yy.yy:27018 | wc -l&lt;br/&gt;
74&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;root@mongo-online02 ~&amp;#93;&lt;/span&gt;# mongostat --port 27018 -u root -p root&lt;br/&gt;
connected to: 127.0.0.1:27018&lt;br/&gt;
insert  query update delete getmore command flushes mapped  vsize    res faults      locked db idx miss %     qr|qw   ar|aw  netIn netOut  conn    set repl       time &lt;br/&gt;
    *8     18     *0     *0       0    68|0       0  24.3g  49.3g   238m      2 my_collection:1.5%          0      25|0    12|0     8k    31k    75 root  SEC   09:29:00 &lt;br/&gt;
    *7     13     *0     *0       0    54|0       0  24.3g  49.3g   232m      2 my_collection:1.4%          0       5|0    32|0     6k    20k    74 root  SEC   09:29:01 &lt;br/&gt;
    *5     17     *0     *0       0    53|0       0  24.3g  49.3g   302m      1 my_collection:0.2%          0      13|0    23|0     6k    21k    74 root  SEC   09:29:02 &lt;/p&gt;</comment>
                            <comment id="348823" author="scotthernandez" created="Thu, 30 May 2013 13:50:12 +0000"  >&lt;p&gt;Please provide the output of the raw commands. This will allow us to see the current state of the connections reported by netstat and mongostat numbers. &lt;/p&gt;

&lt;p&gt;Also, please make sure that the connections you are counting with netstat are to port 27017 and not other things.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </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_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 30 May 2013 13:50:12 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            10 years, 37 weeks, 5 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>scotthernandez</customfieldvalue>
            <customfieldvalue>sorghum</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrmrkf:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrqv5r:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>70562</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>
                                

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

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