6

我看到的错误如下:

Test target PrototypeTests encountered an error (The operation couldn’t be completed. Too many open files in system. Too many open files in system)
Test target Prototype Integration Tests encountered an error (The operation couldn’t be completed. Too many open files in system. Too many open files in system)

我能够毫无问题地运行分析和存档操作,但启用测试操作会导致上述错误。我什至用空测试试过这个,问题仍然存在。

sudo launchctl limit maxfiles我的服务器上的输出是:

maxfiles    256            unlimited      

如果我能提供更多信息,请告诉我。

4

2 回答 2

2

你需要增加你的ulimit。您应该添加以下行:

ulimit -n 4096

在您的 ~/.profile 或类似文件中。

必须将此行添加到 bash 启动文件的原因是,仅运行 sudo ulimit -n 4096 只会更改当前 bash 会话中的限制。

于 2014-07-09T16:49:25.660 回答
0

我在尝试编译时收到了同样的消息,而我的桌面上 RAM 不足、磁盘空间不足以及许多打开的应用程序和文件。关闭其中大部分并清空垃圾箱解决了这个问题。

于 2014-11-21T19:54:28.663 回答