⚖ Compare news

Put up to three stories side by side. Pick IDs from any article URL: /compare?id=123&id=456

Я установил ulimit 65536, но ничего не работает

habrahabr.ru ·Russian Federation · world
Words
58
Chars
403
AI summary
Yes
Full story

A service under load begins losing connections, and logs fill with “Too many open files” even though ulimit -n reports 65536. The limit appears to be set correctly, but the error does not go away. The article explains why limits in an SSH session can differ from the real limits of a systemd service, how to find the source of the problem, and when raising the limit only delays the next failure.

Сервис под нагрузкой начинает терять соединения, в логах сыпется Too many open files , но ulimit -n показывает 65536. Казалось бы, с лимитом всё в порядке, только ошибка никуда не исчезает. Разбираемся, почему настройки в SSH-сессии могут расходиться с реальными ограничениями systemd-сервиса, как найти источник проблемы и в каких случаях увеличение лимита лишь отсрочит очередное падение. Читать далее

Open article