<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:08:13 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-25080] MongoDB 3.2.8 ignores ulimit in systemd distributions</title>
                <link>https://jira.mongodb.org/browse/SERVER-25080</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Hello, I just update some mongod servers to 3.2.8 and I noticed that max open files setting is not respected. db.serverStatus().connections returns a maximum of 819 connections while the ulimit -n is correctly set at 65536&lt;/p&gt;

&lt;p&gt;My servers runs under Debian Jessie and before upgrading package I changed the source from wheezy to jessie repository&lt;/p&gt;

&lt;p&gt;This affects only the jessie version.&lt;/p&gt;

&lt;p&gt;I also tested this on a fresh new server to check if this was coming from my previous configuration and the result is the same, still capped at 819 connections.&lt;/p&gt;

&lt;p&gt;As I can&apos;t download pre 3.2.8 version with the Jessie source I wasn&apos;t able to see if this was affecting previous versions.&lt;/p&gt;

&lt;p&gt;Is the max open files limitation handled differently on Jessie ?&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;</description>
                <environment></environment>
        <key id="301262">SERVER-25080</key>
            <summary>MongoDB 3.2.8 ignores ulimit in systemd distributions</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="sam.kleinman">Sam Kleinman</assignee>
                                    <reporter username="chambo_e">Emmanuel Chambon</reporter>
                        <labels>
                            <label>code-only</label>
                    </labels>
                <created>Thu, 14 Jul 2016 23:24:41 +0000</created>
                <updated>Wed, 23 Nov 2016 18:56:46 +0000</updated>
                            <resolved>Thu, 25 Aug 2016 19:14:14 +0000</resolved>
                                    <version>3.2.8</version>
                                    <fixVersion>3.2.10</fixVersion>
                    <fixVersion>3.3.12</fixVersion>
                                    <component>Admin</component>
                                        <votes>2</votes>
                                    <watches>11</watches>
                                                                                                                <comments>
                            <comment id="1368187" author="samk" created="Thu, 25 Aug 2016 19:12:00 +0000"  >&lt;p&gt;I have pushed the change to set process limits in the systemd service file. &lt;/p&gt;

&lt;p&gt;I&apos;ve tested running MongoDB using the change to the service file and have found that it does not impact existing functioning of the package (starting, stopping, restarting,) and have run some nominal tests with MongoDB, but I have not extensively tested running MongoDB under load with this configuration. &lt;/p&gt;

&lt;p&gt;Thanks for your patience on this and I hope that this change resolves your issue, please let us know if you have additional issues or encounter problems with the service file. &lt;/p&gt;</comment>
                            <comment id="1368158" author="xgen-internal-githook" created="Thu, 25 Aug 2016 18:51:23 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;tychoish&apos;, u&apos;name&apos;: u&apos;Sam Kleinman&apos;, u&apos;email&apos;: u&apos;samk@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-25080&quot; title=&quot;MongoDB 3.2.8 ignores ulimit in systemd distributions&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-25080&quot;&gt;&lt;del&gt;SERVER-25080&lt;/del&gt;&lt;/a&gt; &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-24885&quot; title=&quot;The systemd MaxTasks feature can prevent mongod from accepting new connections&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-24885&quot;&gt;&lt;del&gt;SERVER-24885&lt;/del&gt;&lt;/a&gt;: fix systemd process limits&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/906a6f057f87fb4e51c4a698d9d6fe490fb293a2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/906a6f057f87fb4e51c4a698d9d6fe490fb293a2&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1368155" author="xgen-internal-githook" created="Thu, 25 Aug 2016 18:51:02 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;tychoish&apos;, u&apos;name&apos;: u&apos;Sam Kleinman&apos;, u&apos;email&apos;: u&apos;samk@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-25080&quot; title=&quot;MongoDB 3.2.8 ignores ulimit in systemd distributions&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-25080&quot;&gt;&lt;del&gt;SERVER-25080&lt;/del&gt;&lt;/a&gt; &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-24885&quot; title=&quot;The systemd MaxTasks feature can prevent mongod from accepting new connections&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-24885&quot;&gt;&lt;del&gt;SERVER-24885&lt;/del&gt;&lt;/a&gt;: fix systemd process limits&lt;/p&gt;

&lt;p&gt;(cherry picked from commit 6803a1fb257be78949b5fa08d2e4ad4186793e2b)&lt;br/&gt;
Branch: v3.2&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/60781ebcd9647506bf4a385832c2ea4097b3263a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/60781ebcd9647506bf4a385832c2ea4097b3263a&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1351751" author="sallgeud" created="Tue, 9 Aug 2016 18:00:01 +0000"  >&lt;p&gt;It may not be a duplicate. On our system we previously set the ulimits in the limits.conf file, which worked fine.  Then, someone put ulimit settings into the init.d mongod file.  Now, for those on Jessie, it&apos;s in the mongod.service file in the systemd folder. You&apos;ll have to add the appropriate LimitNOPROC, etc, to get it to work.&lt;/p&gt;</comment>
                            <comment id="1350454" author="thomas.schubert" created="Mon, 8 Aug 2016 18:05:26 +0000"  >&lt;p&gt;Hi all,&lt;/p&gt;

&lt;p&gt;Thank you for the reports. This issue is a duplicate of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-24885&quot; title=&quot;The systemd MaxTasks feature can prevent mongod from accepting new connections&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-24885&quot;&gt;&lt;del&gt;SERVER-24885&lt;/del&gt;&lt;/a&gt;; please feel free to vote for &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-24885&quot; title=&quot;The systemd MaxTasks feature can prevent mongod from accepting new connections&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-24885&quot;&gt;&lt;del&gt;SERVER-24885&lt;/del&gt;&lt;/a&gt; and watch it for updates.&lt;/p&gt;

&lt;p&gt;Best regards,&lt;br/&gt;
Thomas&lt;/p&gt;</comment>
                            <comment id="1326354" author="davemt" created="Sun, 17 Jul 2016 16:45:58 +0000"  >&lt;p&gt;Ran into the same issue, ulimits were ignored after upgrade and server immediately died with errors after restart.&lt;/p&gt;

&lt;p&gt;I believe that happens because package for jessie now includes systemd configuration file (/lib/systemd/system/mongod.service), the presence of which overrides legacy /etc/init.d script completely.&lt;br/&gt;
So ulimit directives there never get executed.&lt;/p&gt;

&lt;p&gt;For my system I made a quick fix by creating file named /etc/systemd/system/mongod.service.d/ulimit.conf (you should create mongod.service.d directory, file name itself is arbitrary) with following contents:&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;Service&amp;#93;&lt;/span&gt;&lt;br/&gt;
LimitFSIZE=infinity&lt;br/&gt;
LimitCPU=infinity&lt;br/&gt;
LimitAS=infinity&lt;br/&gt;
LimitNOFILE=64000&lt;br/&gt;
LimitNPROC=64000&lt;/p&gt;

&lt;p&gt;Then ran &quot;systemctl daemon-reload&quot;, then &quot;systemctl start mongod&quot; and everything went OK.&lt;/p&gt;

&lt;p&gt;These lines should probably be added into vendor-supplied systemd unit.&lt;/p&gt;</comment>
                            <comment id="1326353" author="chambo_e" created="Sun, 17 Jul 2016 16:43:46 +0000"  >&lt;p&gt;The init.d file seems to be the same as the one on Wheezy with the ulimit also set at start&lt;/p&gt;

&lt;p&gt;The only other problem I had since the upgrade to Jessie is that DB Storage on MMS is wrong (doubled compared to what it must be).&lt;/p&gt;</comment>
                            <comment id="1326269" author="sallgeud" created="Sun, 17 Jul 2016 03:44:36 +0000"  >&lt;p&gt;Check the init.d file. It appears to set it in there as well (it should probably inherit from the system and just warn on setup), as we have set it at boot to be much larger than the init script, which may get overwritten by upgrades.&lt;/p&gt;

&lt;p&gt;Did you have any other issues w/ the Jessie build?&lt;/p&gt;

&lt;p&gt;I&apos;m curious if the build script was the same, as I was getting a much more unique set of errors on startup w/ Jessie builds versus Wheezy builds (both running on Jessie).  For now, we remain on Wheezy mongo in Jessie debian.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="298143">SERVER-24885</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>8.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 14 Jul 2016 23:35:42 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        7 years, 24 weeks, 6 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>
                            7 years, 24 weeks, 6 days 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>sallgeud</customfieldvalue>
            <customfieldvalue>davemt</customfieldvalue>
            <customfieldvalue>chambo_e</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>kelsey.schubert@mongodb.com</customfieldvalue>
            <customfieldvalue>sam.kleinman</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrk2hz:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hsnl5r:</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="1187">Build 2016-08-26</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10750" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Steps To Reproduce</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;Install mongod on debian 8 with &apos;deb &lt;a href=&quot;http://repo.mongodb.org/apt/debian&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://repo.mongodb.org/apt/debian&lt;/a&gt; jessie/mongodb-org/3.2 main&apos; as source&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>
                                    <customfieldvalue><![CDATA[kelsey.schubert@mongodb.com]]></customfieldvalue>
    

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

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