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

bix: error (re)opening : too many open files #3

Closed
liserjrqlxue opened this issue Jun 28, 2019 · 1 comment
Closed

bix: error (re)opening : too many open files #3

liserjrqlxue opened this issue Jun 28, 2019 · 1 comment

Comments

@liserjrqlxue
Copy link

liserjrqlxue commented Jun 28, 2019

I got too many open files error when use bix to query tabix index file.
I guess each bix.Query may open some files and not closed immediately.
While golang run concurrency for loop, the files open rapidly extend.
The it is easily to reached the limit of file number to open i.e. 1024 from ulimit -n.

How can we solve this error?

@liserjrqlxue
Copy link
Author

after each bix.Query
use defer Close can solve this problem

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

1 participant