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

ulimit达到之后三分钟日志就把磁盘写满了 #3

Closed
missuzhang opened this issue Nov 10, 2015 · 1 comment
Closed

ulimit达到之后三分钟日志就把磁盘写满了 #3

missuzhang opened this issue Nov 10, 2015 · 1 comment

Comments

@missuzhang
Copy link
Contributor

日志如下:
2015/11/04 02:13:12 rpc.go:32: listener accept fail: accept tcp [::]:6030: too many open files
2015/11/04 02:13:12 rpc.go:32: listener accept fail: accept tcp [::]:6030: too many open files
.......
.......
.......
2015/11/04 02:16:36 rpc.go:32: listener accept fail: accept tcp [::]:6030: too many open files

代码中 hbs/rpc/rpc.go的start方法。
continue 之前sleep一段时间可能会更好。
conn, err := l.Accept()
if err != nil {
log.Println("listener accept fail:", err)
continue

@laiwei
Copy link
Contributor

laiwei commented Nov 10, 2015

#2

已经做了改进,thx

@laiwei laiwei closed this as completed Nov 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants