[SERVER-5291] "Too many open files" causing error in core tests Created: 12/Mar/12  Updated: 11/Jul/16  Resolved: 22/Mar/12

Status: Closed
Project: Core Server
Component/s: Build
Affects Version/s: None
Fix Version/s: 2.1.1

Type: Bug Priority: Major - P3
Reporter: Ian Whalen (Inactive) Assignee: Daniel Crosta
Resolution: Done Votes: 0
Labels: buildbot
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OS X 10.5 32-bit


Operating System: ALL
Participants:

 Description   

terminate called after throwing an instance of 'boost::filesystem2::basic_filesystem_error<boost::filesystem2::basic_path<std::string, boost::filesystem2::path_traits> >'
  what():  boost::filesystem::basic_directory_iterator constructor: Too many open files: "/tmp/unittest/_tmp/esort.1331573852.1362949834/"

http://buildbot.mongodb.org/builders/OS%20X%2010.5%2032-bit/builds/3466/steps/test/logs/stdio



 Comments   
Comment by Daniel Crosta [ 22/Mar/12 ]

This needed to be set in the launchctl plist file. I've added:

                <key>SoftResourceLimits</key>
                <dict>
                        <key>NumberOfFiles</key>
                        <integer>10240</integer>
                        <key>NumberOfProcesses</key>
                        <integer>1024</integer>
                </dict>
                <key>HardResourceLimits</key>
                <dict>
                        <key>NumberOfFiles</key>
                        <integer>10240</integer>
                        <key>NumberOfProcesses</key>
                        <integer>1024</integer>
                </dict>

to the plist on each of the mac mini builders.

Comment by Michael A. Fiedler [ 13/Mar/12 ]

Raised to 10240 (highest on this OS).

Comment by Eliot Horowitz (Inactive) [ 13/Mar/12 ]

You should have root...
Grab me tomorrow to go over.

Comment by Michael A. Fiedler [ 13/Mar/12 ]

I tried to do this, but can't, since I cannot access root on this machine.

Comment by Andy Schwerin [ 13/Mar/12 ]

Can you check the open file limits on the OS X 32-bit builder? If they're low, bump them. If not, just report them and assign this bug back to me.

Thanks!

Generated at Thu Feb 08 03:08:27 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.