<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:00:15 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-2516] mongostat shows incorrect connections number</title>
                <link>https://jira.mongodb.org/browse/SERVER-2516</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Running mongostat with no params locally to connect to localhost shows an incorrect number of connections when compared to running with -h hostname or checking the rest interface.&lt;/p&gt;

&lt;p&gt;-bash-3.2$ ./mongostat&lt;br/&gt;
connected to: 127.0.0.1&lt;br/&gt;
insert/s query/s update/s delete/s getmore/s command/s flushes/s mapped  vsize    res faults/s locked % idx miss %    q t|r|w  conn       time &lt;br/&gt;
       0       0        0        0         0         3         0 168095 168385     52        0        0          0      0|0|0     8   16:42:49 &lt;br/&gt;
       0       0        0        0         0         3         0 168095 168385     52        0        0          0      0|0|0     8   16:42:50 &lt;/p&gt;

&lt;p&gt;-bash-3.2$ ./mongostat -h hostname.com&lt;br/&gt;
connected to: sharemdb01c.internal.shutterfly.com&lt;br/&gt;
insert/s query/s update/s delete/s getmore/s command/s flushes/s mapped  vsize    res faults/s locked % idx miss %    q t|r|w  conn       time &lt;br/&gt;
       0      17        2        0         4         5         0 171038 173876  40354        1        0          0      0|0|0   209   16:46:22 &lt;br/&gt;
       0      31        1        0         2         6         0 171038 173876  40354        0        0          0      0|0|0   209   16:46:23 &lt;/p&gt;


&lt;p&gt;&lt;a href=&quot;http://hostname.com:28017/serverStatus?text&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://hostname.com:28017/serverStatus?text&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;  &quot;connections&quot; : &lt;/p&gt;
{ &quot;current&quot; : 208,
    &quot;available&quot; : 19792 }
&lt;p&gt;,&lt;/p&gt;</description>
                <environment>CentOS 5.2</environment>
        <key id="14624">SERVER-2516</key>
            <summary>mongostat shows incorrect connections number</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</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="5">Cannot Reproduce</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="brennan">Brennan Pang</reporter>
                        <labels>
                    </labels>
                <created>Thu, 10 Feb 2011 01:06:37 +0000</created>
                <updated>Fri, 30 Mar 2012 14:37:05 +0000</updated>
                            <resolved>Thu, 10 Feb 2011 20:46:26 +0000</resolved>
                                    <version>1.6.3</version>
                                                    <component>Tools</component>
                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="30306" author="sspkrolik" created="Fri, 29 Apr 2011 14:40:04 +0000"  >&lt;p&gt;There is one mongo instance running.&lt;br/&gt;
I use:&lt;br/&gt;
  netstat | grep 27017&lt;/p&gt;

&lt;p&gt;and see near 50 hanging (&apos;ESTABLISHED&apos;) connections. &lt;br/&gt;
I actually don&apos;t know if to trust netstat in this case but 500 connections seems too unreal for me.&lt;/p&gt;</comment>
                            <comment id="30302" author="eliot" created="Fri, 29 Apr 2011 14:31:31 +0000"  >&lt;p&gt;How are you measuring 50?&lt;/p&gt;</comment>
                            <comment id="30277" author="sspkrolik" created="Fri, 29 Apr 2011 10:22:31 +0000"  >&lt;p&gt;This bug also affects me. Mongostat shows 500 open connections, when there are really about 50 of those.&lt;/p&gt;</comment>
                            <comment id="23605" author="brennan" created="Thu, 10 Feb 2011 20:38:52 +0000"  >&lt;p&gt;Yes it did at the time.  Oddly enough, I can&apos;t seem to reproduce it from the same machine today.  It did seem that the behavior of running ./mongostat without -h was connecting to another one of the set members, which is why the stats looked that way.  I&apos;ll follow up if I encounter the issue again.&lt;/p&gt;</comment>
                            <comment id="23526" author="eliot" created="Thu, 10 Feb 2011 04:43:51 +0000"  >&lt;p&gt;Can you verify that hostname.com resolves to the same machine where you did 127.0.0.1?&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, 10 Feb 2011 04:43:51 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        12 years, 42 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>ian@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            12 years, 42 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_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10026"><![CDATA[ALL]]></customfieldvalue>

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

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

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

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