Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macOS error: too many open files #2

Open
HeyShinner opened this issue Aug 8, 2019 · 1 comment
Open

macOS error: too many open files #2

HeyShinner opened this issue Aug 8, 2019 · 1 comment

Comments

@HeyShinner
Copy link
Owner

HeyShinner commented Aug 8, 2019

iTerm2 运行:ibazel run ecnova/trenchapp/frontend:devserver,报错:

image

@HeyShinner HeyShinner changed the title 小目标 iTerm2 启动 devServer 失败 Sep 24, 2019
@HeyShinner
Copy link
Owner Author

原因

句柄数超出系统限制。

解决方法

ulimit -n 2048 或者 ulimit -n 4096

但是这种设置方法重启后会恢复默认值 1024。

查看当前进程句柄数

image

查看句柄数超 200 的进程,发现是 Chrome,企业微信,微信,bazel

@HeyShinner HeyShinner changed the title iTerm2 启动 devServer 失败 macOS error: too many open files Sep 25, 2019
@HeyShinner HeyShinner reopened this Sep 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant