<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:19:43 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-9211] CLONE - Mongod 2.4.0 takes upto 99 % cpu and query result is undef</title>
                <link>https://jira.mongodb.org/browse/SERVER-9211</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Hi All,&lt;br/&gt;
 I upgraded mongodb to 240. I am running standalone mongo server with 2 collections. one having 1.3 million docs other with 900k docs. Running query with a filter to have count of records makes CPU usage to go up till 99%. And query returns no data. I am using perl driver to query. Even after query execution is over, mongod CPU usages remains at 80-90%.&lt;br/&gt;
Strace on mongod gave me below out put&lt;/p&gt;

&lt;p&gt;Process 3284 attached - interrupt to quit&lt;br/&gt;
setuid(4294967295)                      = 0&lt;br/&gt;
setuid(4294967295)                      = 0&lt;br/&gt;
setuid(4294967295)                      = 0&lt;br/&gt;
setuid(4294967295)                      = 0&lt;br/&gt;
setuid(4294967295)                      = 0&lt;br/&gt;
setuid(4294967295)                      = 0&lt;br/&gt;
setuid(4294967295)                      = 0&lt;/p&gt;

&lt;p&gt;My collections are indexed on _id. &lt;/p&gt;

&lt;p&gt;Can any one help if i am missing something.&lt;br/&gt;
I am using capped collection of 1GB.&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;</description>
                <environment>linux</environment>
        <key id="70455">SERVER-9211</key>
            <summary>CLONE - Mongod 2.4.0 takes upto 99 % cpu and query result is undef</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="2" iconUrl="https://jira.mongodb.org/images/icons/priorities/critical.svg">Critical - P2</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="asethy">Arati Sethy</reporter>
                        <labels>
                    </labels>
                <created>Tue, 2 Apr 2013 13:20:13 +0000</created>
                <updated>Wed, 10 Dec 2014 23:19:35 +0000</updated>
                            <resolved>Mon, 28 Oct 2013 03:56:14 +0000</resolved>
                                    <version>2.4.0</version>
                                                    <component>Diagnostics</component>
                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="447429" author="stennie" created="Mon, 28 Oct 2013 03:56:14 +0000"  >&lt;p&gt;Hi Arati,&lt;/p&gt;

&lt;p&gt;I&apos;m closing this issue due to inactivity.  As noted on the &lt;a href=&quot;https://groups.google.com/forum/#!topic/mongodb-user/9kpx5j4b6Ug&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;mongodb-user discussion thread&lt;/a&gt; related to this issue, we would need additional information to investigate further.&lt;/p&gt;

&lt;p&gt;If you are still seeing this issue (particularly with a newer version of MongoDB 2.4.x) please feel free to open a new issue or comment on this one with the relevant details.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Stephen&lt;/p&gt;</comment>
                            <comment id="304208" author="eliot" created="Tue, 2 Apr 2013 15:45:02 +0000"  >&lt;p&gt;The only query I saw was the count, which was a lot faster using count()&lt;br/&gt;
If you give another example of a slow query, we can try to help optimize.&lt;/p&gt;</comment>
                            <comment id="304116" author="asethy" created="Tue, 2 Apr 2013 14:14:50 +0000"  >&lt;p&gt;Can you please suggest any alternative? I have tried aggregate too didnt see much difefrence. I run this query every hour.&lt;/p&gt;</comment>
                            <comment id="304094" author="eliot" created="Tue, 2 Apr 2013 13:35:32 +0000"  >&lt;p&gt;virtual memory in mongo is going to be 2x data size, and isn&apos;t a metric that matters much.&lt;/p&gt;

&lt;p&gt;if you have a query that takes 30 seconds, it&apos;ll pin 1 core so top will show 99%.&lt;/p&gt;


&lt;p&gt;other operations can interleave, causing the cpu to go above 100%, but that one query will peg a core.&lt;/p&gt;</comment>
                            <comment id="304089" author="asethy" created="Tue, 2 Apr 2013 13:24:08 +0000"  >&lt;p&gt;I need to resolve the issue of CPU utilization and Memory usage.&lt;br/&gt;
Please read my comments, even if i have a separate query and it takes 30 secs to respond, CPU utilizaton is 99%. virtual mem goes to 20G and actual usage is 13.7%&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                                        </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <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>Tue, 2 Apr 2013 13:35:32 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        10 years, 16 weeks, 2 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, 16 weeks, 2 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="10020"><![CDATA[Linux]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>asethy</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>stephen.steneker@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrmyrb:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>48192</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_10750" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Steps To Reproduce</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;1. Run stand alone mongod&lt;br/&gt;
2. Create 2 collections with cap of 1GB each&lt;br/&gt;
3. have 1.3 and 900k docs in those collections&lt;br/&gt;
4. run a query with timestamp range for list of documents with count function&lt;/p&gt;</customfieldvalue>

                        </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|hs9zr3:</customfieldvalue>

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