Commit 171f3d896908aac2e85007ea69166a75e90f2c40
1 parent
b2a0ffde
Set systemd LimitNOFILE to infinite
Showing
2 changed files
with
3 additions
and
2 deletions
debian/flashmq.service
mainapp.cpp
| ... | ... | @@ -707,7 +707,8 @@ void MainApp::setlimits() |
| 707 | 707 | struct rlimit v = { nofile, nofile }; |
| 708 | 708 | if (setrlimit(RLIMIT_NOFILE, &v) < 0) |
| 709 | 709 | { |
| 710 | - logger->logf(LOG_ERR, "Setting ulimit nofile failed: '%s'. This means the default is used.", strerror(errno)); | |
| 710 | + logger->logf(LOG_ERR, "Setting ulimit nofile failed: '%s'. This means the default is used. Note. It's also subject to systemd's 'LimitNOFILE', " | |
| 711 | + "which in turn is maxed to '/proc/sys/fs/nr_open', which can be set like 'sysctl fs.nr_open=15000000'", strerror(errno)); | |
| 711 | 712 | } |
| 712 | 713 | } |
| 713 | 714 | ... | ... |