Too many open files

Материал из poiuty wiki
Перейти к: навигация, поиск

Нашел в /var/log/tor/tor.log

Dec 23 11:01:17.000 [warn] Failing because we have 4088 connections already. Please raise your ulimit -n. [590783045 similar message(s) suppressed in last 21600 seconds]
Dec 23 14:11:54.000 [warn] Couldn't open "/var/lib/tor/state.tmp" (/var/lib/tor/state) for writing: Too many open files
Dec 23 14:11:54.000 [warn] Unable to write state to file "/var/lib/tor/state"; will try again later

Проверяем

# su _tor -s /bin/sh
sh-4.1$ ulimit -Sn
1024
sh-4.1$ ulimit -Hn
4096
sh-4.1$ exit

Редактируем /etc/security/limits.conf

_tor soft nofile 16000
_tor hard nofile 32000

И проверяем снова.

# su _tor  -s /bin/sh
sh-4.1$ ulimit -Sn
16000
sh-4.1$ ulimit -Hn
32000
sh-4.1$ exit