<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:04:05 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-3796] mongodb fails db.currentOp(); how to debug?</title>
                <link>https://jira.mongodb.org/browse/SERVER-3796</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;{{&lt;br/&gt;
&amp;gt; db.currentOp();                                                                                                    &lt;br/&gt;
Fri Sep  9 18:21:15   Assertion failure r scripting/engine_spidermonkey.cpp 634&lt;br/&gt;
0x4d539e 0x4d810d 0x530e45 0x523827 0x5ed545 0x5ed122 0x5dfafc 0x5dfe73 0x5c2dae 0x5bead6 0x57bccf 0x57bc18 0x57bb01 0x52ed8d 0x47be59 0x47d036 0x3406e1d994 0x4760e9 &lt;br/&gt;
 mongo(_ZN5mongo12sayDbContextEPKc+0xae) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x4d539e&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(_ZN5mongo8assertedEPKcS1_j+0xfd) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x4d810d&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(_ZN5mongo9Convertor5tovalERKNS_11BSONElementE+0x1445) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x530e45&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(&lt;em&gt;ZN5mongo16resolveBSONFieldEP9JSContextP8JSObjectljPS3&lt;/em&gt;+0x1f7) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x523827&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(js_LookupPropertyWithFlags+0x421) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x5ed545&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(js_LookupProperty+0x49) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x5ed122&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo &lt;span class=&quot;error&quot;&gt;&amp;#91;0x5dfafc&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(js_CallIteratorNext+0xd8) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x5dfe73&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(js_Interpret+0x32c8) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x5c2dae&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(js_Execute+0x418) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x5bead6&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(JS_EvaluateUCScriptForPrincipals+0xb5) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x57bccf&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(JS_EvaluateUCScript+0x5a) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x57bc18&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(JS_EvaluateScript+0x80) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x57bb01&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(_ZN5mongo7SMScope4execERKNS_10StringDataERKSsbbbi+0x10d) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x52ed8d&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(_Z5_mainiPPc+0x21b9) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x47be59&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(main+0x26) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x47d036&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib64/libc.so.6(__libc_start_main+0xf4) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x3406e1d994&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(_ZNSt15basic_streambufIcSt11char_traitsIcEE6xsputnEPKcl+0x49) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x4760e9&amp;#93;&lt;/span&gt;&lt;br/&gt;
error:assertion scripting/engine_spidermonkey.cpp:634&lt;br/&gt;
&amp;gt; db.currentOp();&lt;br/&gt;
SyntaxError: invalid quantifier +21tahun\.xxxxx\.com&lt;br/&gt;
error2:(shellhelp1) exec failed: SyntaxError: invalid quantifier +21tahun\.xxxxx\.com&lt;br/&gt;
&amp;gt; db.stats();&lt;br/&gt;
SyntaxError: invalid quantifier +21tahun\.xxxxx\.com&lt;br/&gt;
error2:(shellhelp1) exec failed: SyntaxError: invalid quantifier +21tahun\.xxxxx\.com&lt;br/&gt;
&amp;gt;&lt;br/&gt;
}}&lt;/p&gt;</description>
                <environment>centos 5.6 x64 xen&lt;br/&gt;
mongo-10gen-server-1.8.3-mongodb_1.rpm&lt;br/&gt;
</environment>
        <key id="22053">SERVER-3796</key>
            <summary>mongodb fails db.currentOp(); how to debug?</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="antoine">Antoine Girbal</assignee>
                                    <reporter username="ootada">ttt</reporter>
                        <labels>
                    </labels>
                <created>Fri, 9 Sep 2011 15:42:09 +0000</created>
                <updated>Mon, 11 Jul 2016 18:34:35 +0000</updated>
                            <resolved>Sat, 10 Sep 2011 13:53:39 +0000</resolved>
                                    <version>1.8.3</version>
                                                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="53330" author="eliot" created="Sat, 10 Sep 2011 13:53:33 +0000"  >&lt;p&gt;I think the shell from 1.8.4 will work better as the heap size is larger.&lt;br/&gt;
I thikn you had a lot of ops queues, and so it blew the heap.&lt;/p&gt;</comment>
                            <comment id="53328" author="ootada" created="Sat, 10 Sep 2011 11:24:24 +0000"  >&lt;p&gt;now - running fine, not a peak traffic:&lt;br/&gt;
insert  query update delete getmore command flushes mapped  vsize    res&lt;br/&gt;
faults locked % idx miss %     qr|qw   ar|aw  netIn netOut  conn       time&lt;br/&gt;
    21   4027     23    108       0      80       0    34g  51.8g  5.58g&lt;br/&gt;
55      4.4          0       0|0     1|0   659k     8m  4149   13:46:38&lt;br/&gt;
    17   3150     15     99       0      84       0    34g  51.8g  5.58g&lt;br/&gt;
23      2.1          0       0|0     0|0   463k     6m  4144   13:46:39&lt;br/&gt;
     4   3471      7     85       2      47       0    34g  51.8g  5.58g&lt;br/&gt;
26      1.6          0       0|0     1|0   436k     6m  4144   13:46:40&lt;br/&gt;
     6   2960      8    115       0       3       0    34g  51.8g  5.58g&lt;br/&gt;
18      2.1          0       1|0     1|0   361k     5m  4144   13:46:41&lt;br/&gt;
    19   3397     12    127       0       9       0    34g  51.8g  5.58g&lt;br/&gt;
27      2.6          0       0|0     0|0   476k     6m  4139   13:46:42&lt;br/&gt;
     8   3206     10     85       0     219       0    34g  51.8g  5.58g&lt;br/&gt;
37        2          0       0|0     2|0   428k     7m  4139   13:46:43&lt;br/&gt;
    14   3285     15     90       0      17       0    34g  51.7g  5.58g&lt;br/&gt;
45      7.8          0       0|0     1|0   451k     6m  4134   13:46:44&lt;br/&gt;
     0   3233      4    104       2      29       0    34g  51.7g  5.58g&lt;br/&gt;
36      1.9          0       0|0     1|0   407k     6m  4134   13:46:45&lt;br/&gt;
     0   2972      1    124       0      18       0    34g  51.7g  5.58g&lt;br/&gt;
26        2          0       0|0     1|0   364k     5m  4130   13:46:46&lt;br/&gt;
     8   2874      9     78       0       9       0    34g  51.7g  5.58g&lt;br/&gt;
50      6.5        100       0|0     2|0   368k     6m  4130   13:46:47&lt;br/&gt;
insert  query update delete getmore command flushes mapped  vsize    res&lt;br/&gt;
faults locked % idx miss %     qr|qw   ar|aw  netIn netOut  conn       time&lt;br/&gt;
     4   3282      9    113       0      17       0    34g  50.1g  5.75g&lt;br/&gt;
28      2.1          0       0|0     1|0   447k     5m  3706   13:58:25&lt;br/&gt;
     7   2801     10    105       0      11       0    34g    50g  5.75g&lt;br/&gt;
21        3          0       0|0     0|0   448k     5m  3696   13:58:26&lt;br/&gt;
     9   3078      4    104       0      22       0    34g    50g  5.75g&lt;br/&gt;
36      1.7          0      10|2    11|2   382k     5m  3691   13:58:27&lt;br/&gt;
    15   2782     18     57       2       6       0    34g    50g  5.75g&lt;br/&gt;
35      1.5          0       0|0     1|1   417k     5m  3686   13:58:28&lt;br/&gt;
    14   2972     14    149       0       9       0    34g    50g  5.75g&lt;br/&gt;
16        3          0      35|4    38|4   433k     5m  3686   13:58:29&lt;br/&gt;
    23   3177     18     88       0      17       0    34g    50g  5.75g&lt;br/&gt;
25      4.8          0       0|0     0|0   492k     6m  3686   13:58:30&lt;br/&gt;
    13   2654     11     76       2      14       0    34g    50g  5.75g&lt;br/&gt;
26      1.8          0       0|0     1|0   447k     5m  3687   13:58:31&lt;br/&gt;
    14   3142     18     81       0     221       0    34g    50g  5.75g&lt;br/&gt;
40     23.3          0     27|10   34|10   422k     8m  3682   13:58:32&lt;br/&gt;
    16   2995     13     63       2      12       0    34g    50g  5.75g&lt;br/&gt;
34      4.7          0       0|0     0|0   445k     6m  3677   13:58:33&lt;br/&gt;
     8   3271      8     96       0      18       0    34g  49.9g  5.75g&lt;br/&gt;
34      1.9          0      48|2    50|3   545k     6m  3672   13:58:34&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;free&lt;br/&gt;
             total       used       free     shared    buffers     cached&lt;br/&gt;
Mem:       7077888    7050196      27692          0      12876    6098780&lt;br/&gt;
-/+ buffers/cache:     938540    6139348&lt;br/&gt;
Swap:      2097144      72492    2024652&lt;/li&gt;
&lt;/ol&gt;



&lt;p&gt;{&lt;br/&gt;
        &quot;db&quot; : &quot;xxxxx&quot;,&lt;br/&gt;
        &quot;collections&quot; : 38,&lt;br/&gt;
        &quot;objects&quot; : 15235640,&lt;br/&gt;
        &quot;avgObjSize&quot; : 1659.7376002583417,&lt;br/&gt;
        &quot;dataSize&quot; : 25287164572,&lt;br/&gt;
        &quot;storageSize&quot; : 27740390048,&lt;br/&gt;
        &quot;numExtents&quot; : 228,&lt;br/&gt;
        &quot;indexes&quot; : 118,&lt;br/&gt;
        &quot;indexSize&quot; : 7194130048,&lt;br/&gt;
        &quot;fileSize&quot; : 38569771008,&lt;br/&gt;
        &quot;ok&quot; : 1&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;problems last day:&lt;br/&gt;
insert  query update delete getmore command flushes mapped  vsize    res&lt;br/&gt;
faults locked % idx miss %     qr|qw   ar|aw  netIn netOut  conn       time&lt;br/&gt;
     0   2624      1     60       0       7       0    34g  64.3g  5.05g&lt;br/&gt;
83      0.4          0   54|1010 181|1010   296k     4m  6950   16:18:33&lt;br/&gt;
     1   2985      0     78       0       9       0    34g  64.4g  5.05g&lt;br/&gt;
109      4.8          0   33|1048 100|1048   376k     6m  6964   16:18:34&lt;br/&gt;
     6   3034      3     85       0       5       0    34g  64.4g  5.05g&lt;br/&gt;
70      6.3          0  137|1060 190|1060   365k     5m  6971   16:18:35&lt;br/&gt;
     3   3197      0    101       0      18       0    34g  64.5g  5.05g&lt;br/&gt;
88      1.7          0   47|1109 98|1109   385k     6m  6982   16:18:36&lt;br/&gt;
     2   2780      1     83       0       7       0    34g  64.5g  5.05g&lt;br/&gt;
91      9.6          0   32|1120 84|1123   325k     5m  6991   16:18:37&lt;br/&gt;
     2   2556      0     86       0      10       0    34g  64.5g  5.05g&lt;br/&gt;
74      1.4          0   55|1127 109|1128   307k     5m  6977   16:18:38&lt;br/&gt;
     1   2511      3     75       0      20       0    34g  64.6g  5.06g&lt;br/&gt;
93     11.1          0   61|1141 111|1141   304k     5m  7008   16:18:39&lt;br/&gt;
     9   2981      4    106       0       8       0    34g  64.6g  5.06g&lt;br/&gt;
92        4          0   32|1107 93|1107   361k     7m  7026   16:18:40&lt;br/&gt;
     2   2521      5     74       0       6       1    34g  64.7g  5.06g&lt;br/&gt;
77      1.6          0   99|1100 157|1100   295k     6m  7033   16:18:41&lt;br/&gt;
     8   3536      3    131       0       4       0    34g  64.6g  5.06g&lt;br/&gt;
94      3.6          0   15|1079 78|1080   432k     6m  7017   16:18:42&lt;/p&gt;

&lt;p&gt;From my position it looks like there was a bit of starving of mongod from&lt;br/&gt;
disk io by other process, and then it hit 100% cpu wall (normally running&lt;br/&gt;
&amp;lt;60%) and couldn&apos;t recover as it sometimes does (when hitting cpu wall&lt;br/&gt;
mongod actually starts using less disk io). So it had long running queries&lt;br/&gt;
lagging in queue and then it couldn&apos;t show currentOp() of them. I did&lt;br/&gt;
restart mongod at some point and then it got into same trouble again pretty&lt;br/&gt;
soon.&lt;br/&gt;
After the traffic slowed down and the queue cleared, mongod started to run&lt;br/&gt;
currentOp() correctly without restart...&lt;/p&gt;




&lt;p&gt;On Sat, Sep 10, 2011 at 7:38 AM, Eliot Horowitz (JIRA) &amp;lt;jira@mongodb.org&amp;gt;wrote:&lt;/p&gt;
</comment>
                            <comment id="53311" author="eliot" created="Sat, 10 Sep 2011 04:36:41 +0000"  >&lt;p&gt;That probably means the vm ran out of memory.&lt;br/&gt;
Can you run mongostat?&lt;/p&gt;</comment>
                            <comment id="53310" author="eliot" created="Sat, 10 Sep 2011 04:36:34 +0000"  >&lt;p&gt;That probably means the vm ran out of memory.&lt;br/&gt;
Can you run mongostat?&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>4.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Sat, 10 Sep 2011 04:36:34 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        12 years, 23 weeks, 4 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>
                            12 years, 23 weeks, 4 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>antoine</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>ootada</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hriouf:</customfieldvalue>

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

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

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