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

panic: too many open files #5

Open
yitu2020 opened this issue May 16, 2020 · 2 comments
Open

panic: too many open files #5

yitu2020 opened this issue May 16, 2020 · 2 comments

Comments

@yitu2020
Copy link

[GIN-debug] Listening and serving HTTP on :9033
panic: too many open files

goroutine 7 [running]:
main.checkErr(...)
/Users/mac/Desktop/goadmin-vue-example/backend/main.go:171
main.watch.func3(0xc00003a3e0, 0x15, 0x4f98bc0, 0xc0000b5ad0, 0x0, 0x0, 0x0, 0xc000062d48)
/Users/mac/Desktop/goadmin-vue-example/backend/main.go:154 +0xde
path/filepath.walk(0xc00003a3e0, 0x15, 0x4f98bc0, 0xc0000b5ad0, 0xc000062f88, 0x0, 0x0)
/usr/local/Cellar/go/1.13.5/libexec/src/path/filepath/path.go:362 +0xe3
path/filepath.walk(0xc0003c81c0, 0x11, 0x4f98bc0, 0xc0002a60d0, 0xc000062f88, 0x0, 0xc000056ee0)
/usr/local/Cellar/go/1.13.5/libexec/src/path/filepath/path.go:382 +0x2ff
path/filepath.Walk(0xc0003c81c0, 0x11, 0xc000056f88, 0xc0000cba40, 0xc0002644f0)
/usr/local/Cellar/go/1.13.5/libexec/src/path/filepath/path.go:404 +0xff
main.watch(0xc0003c81c0, 0x11, 0x4abb7c0, 0x5, 0x7ffeefbffa50, 0x7, 0x0)
/Users/mac/Desktop/goadmin-vue-example/backend/main.go:148 +0x219
created by main.main
/Users/mac/Desktop/goadmin-vue-example/backend/main.go:84 +0xd02

@chenhg5
Copy link

chenhg5 commented May 17, 2020

@yitu2020 Try run: ulimit -n 1024

@yitu2020
Copy link
Author

@yitu2020 Try run: ulimit -n 1024

It works.thanks.

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