<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 06:53:01 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-83742] Unable to start a mongod process using mongod &#8211;fork as mongo is trying to collectSystemInfo which is very large in size in my system</title>
                <link>https://jira.mongodb.org/browse/SERVER-83742</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;I tried to launch mongoDB server using mongod --fork and I encountered with the below error message:&lt;br/&gt;
_&lt;/p&gt;
{&#8220;t&#8221;:\{&#8220;$date&#8221;:&#8220;2023-11-28T17:49:33.089Z&#8221;}
&lt;p&gt;,&#8220;s&#8221;:&#8220;E&#8221;, &#8220;c&#8221;:&#8220;-&#8221;, &#8220;id&#8221;:23077, &#8220;ctx&#8221;:&#8220;main&#8221;,&#8220;msg&#8221;:&#8220;Assertion&#8221;,&#8220;attr&#8221;:{&#8220;error&#8221;:&#8220;BSONObjectTooLarge: BSONObj size: 17067964 (0x1046FBC) is invalid. Size must be between 0 and 16793600(16MB) First element: versionString: &quot;Linux version 4.12.14-122.144-default (geeko@buildhost) (gcc version 4.8.5 (SUSE Linux) )&#160;#1&#160;SMP Mon Dec 12 09:21:50 UTC 2022 (bccc371)&quot;&#8221;,&#8220;file&#8221;:&#8220;src/mongo/bson/bsonobj.cpp&#8221;,&#8220;line&#8221;:101}}_&lt;/p&gt;

&lt;p&gt;I tried to explore more about this issue and got to know that mongo is internally trying to collect system information through the function &#8220;ProcessInfo::SystemInfo::collectSystemInfo()&#8221; and then saves it into a BSON object and then tries to write it in the DB. Some of the system informations which mongo tries to get is :&#160;&lt;em&gt;/proc/version&lt;/em&gt;,&#160;&lt;em&gt;/proc/cpuinfo&lt;/em&gt;,&#160;&lt;em&gt;/proc/self/mouninfo&lt;/em&gt;,&#160;&lt;em&gt;/proc/meminfo&lt;/em&gt;,&#160;&lt;em&gt;etc&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;I checked the wordcount of these files in the host machine on which we were trying to launch DB. I got the below result :&lt;br/&gt;
wc -c /proc/version /proc/cpuinfo /proc/self/mountinfo /proc/meminfo&lt;br/&gt;
136 /proc/version&lt;br/&gt;
64018 /proc/cpuinfo&lt;br/&gt;
&lt;b&gt;11518468&lt;/b&gt;&#160;/proc/self/mountinfo&lt;br/&gt;
1286 /proc/meminfo&lt;br/&gt;
11583908 total&lt;/p&gt;

&lt;p&gt;Then, I understood that the issue is due to the large size of &#8220;mountinfo&#8221;. But now, the issue is how to launch mongoDB without encountering this issue?&lt;/p&gt;

&lt;p&gt;So, my questions are :&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;Is there any way to disable mongod from collecting system info, i.e., is there any possible way to disable calling &#8220;ProcessInfo::SystemInfo::collectSystemInfo()&#8221; function? If yes, please ellaborate the ways I can do so&#8230;&lt;/li&gt;
	&lt;li&gt;How to launch mongoDB without doing any changes in &#8220;/proc/&#8221; directory?&lt;/li&gt;
&lt;/ol&gt;
</description>
                <environment></environment>
        <key id="2512909">SERVER-83742</key>
            <summary>Unable to start a mongod process using mongod &#8211;fork as mongo is trying to collectSystemInfo which is very large in size in my system</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="1" iconUrl="https://jira.mongodb.org/images/icons/statuses/open.png" description="">Open</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="brad.moore@mongodb.com">Brad Moore</assignee>
                                    <reporter username="nidhi03october@gmail.com">Nidhi Kumari</reporter>
                        <labels>
                    </labels>
                <created>Thu, 30 Nov 2023 14:16:44 +0000</created>
                <updated>Mon, 5 Feb 2024 17:29:58 +0000</updated>
                                                                            <component>Admin</component>
                                        <votes>0</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="5980820" author="JIRAUSER1273143" created="Tue, 2 Jan 2024 18:53:38 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=nidhi03october%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;nidhi03october@gmail.com&quot;&gt;nidhi03october@gmail.com&lt;/a&gt; I will look into the feasibility of disabling collecting this info altogether if desired.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;However, in the interest of solving the underlying problem: would you be able to share (redacted if necessary) the contents of /proc/self/mountinfo so that I can understand what would cause such a large file?&lt;/p&gt;</comment>
                            <comment id="5948587" author="JIRAUSER1274755" created="Wed, 13 Dec 2023 17:41:13 +0000"  >&lt;p&gt;Hello &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=nidhi03october%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;nidhi03october@gmail.com&quot;&gt;nidhi03october@gmail.com&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Thank you for your detailed report. I haven&apos;t found a way within MongoDB to disable that functionality specifically, nor have I found a way to control the maximum size of a BSON object easily. For now, Im going to assign this to a team that would better be able to determine how to increase the maximum size of a BSON object, which should resolve your issue if one is available. &lt;/p&gt;

&lt;p&gt;I see you made a post on our &lt;a href=&quot;https://www.mongodb.com/community/forums/t/unable-to-start-a-mongod-process-using-mongod-fork-as-mongo-is-trying-to-collectsysteminfo-which-is-very-large-in-size-in-my-system/255896&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;community forum&lt;/a&gt;. As mentioned there, it might be worth pursuing alternative means of running MongoDB in your environment as was noted by the community.&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>2.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_12751" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Assigned Teams</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="25129"><![CDATA[Server Security]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 13 Dec 2023 17:41:13 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        5 weeks, 1 day 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>elizabeth.roytburd@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            5 weeks, 1 day ago
                        </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>rhea.thorne@mongodb.com</customfieldvalue>
            <customfieldvalue>brad.moore@mongodb.com</customfieldvalue>
            <customfieldvalue>nidhi03october@gmail.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i32lvj:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</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_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="7711">Security 2024-01-08</customfieldvalue>
    <customfieldvalue id="8159">Security 2024-02-05</customfieldvalue>
    <customfieldvalue id="8160">Security 2024-02-19</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                    <customfieldvalue><![CDATA[rhea.thorne@mongodb.com]]></customfieldvalue>
    

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

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