A
A
Alex Smith2020-10-21 13:18:28
linux
Alex Smith, 2020-10-21 13:18:28

How to get rid of too many open files error?

Write a powerful parser in Golang. Recently, errors "dial tcp: lookup localhost: too many open files" began to fall
Ulimit increased, connections in go are all closed, what else could be the problem?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexey Cheremisin, 2020-10-21
@sasnnick

How did you increase ulimit? Hopefully through /etc/security/limits.conf?
And there is another utilitylsof -p 1753

V
Victor Taran, 2020-10-21
@shambler81

is on the Internet in the first line https://winitpro.ru/index.php/2019/11/19/oshibka-t...
may differ slightly from the OS

L
Leonid Nikolaev, 2020-10-21
@nikonor

I think you should look at maxIdleConnsPerHost

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question