Syslog-ng too many open files
Hello, I'm receiving many messages on my syslog-ng like this: syslog-ng[20419]: Error opening file for writing; filename="...", error='Too many open files (24)' syslog-ng[20419]: Error accepting new connection; error='Too many open files (24)' In lsof output, the syslog-ng daemon has many files opened and when I try to login from other console or change to root account, it gets blocked. I've increased the sysctl fs.file-max to 300000 but the problem persists. Any ideas what's going wrong?
What version of syslog-ng is this? Is it 2.0.7? Could it be the same issue recently reported as "syslog-ng 2.0.7 major problem‏" in the list archives, where syslog-ng 2.0.7 does not close old files after SIGHUP? 300,000 is a lot of files...
Date: Thu, 24 Jan 2008 11:51:31 +0000 From: pedro.a.simoes@gmail.com To: syslog-ng@lists.balabit.hu Subject: [syslog-ng] Syslog-ng too many open files
Hello,
I'm receiving many messages on my syslog-ng like this:
syslog-ng[20419]: Error opening file for writing; filename="...", error='Too many open files (24)' syslog-ng[20419]: Error accepting new connection; error='Too many open files (24)'
In lsof output, the syslog-ng daemon has many files opened and when I try to login from other console or change to root account, it gets blocked.
I've increased the sysctl fs.file-max to 300000 but the problem persists.
Any ideas what's going wrong? _______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html
_________________________________________________________________ Get 30 Free Emoticons for your Windows Live Messenger http://www.livemessenger-emoticons.com/en-ie
Hi,
Hello,
I'm receiving many messages on my syslog-ng like this:
syslog-ng[20419]: Error opening file for writing; filename="...", error='Too many open files (24)' syslog-ng[20419]: Error accepting new connection; error='Too many open files (24)'
Try raising the per-process number of open files. Please refer to ulimit.
In lsof output, the syslog-ng daemon has many files opened and when I try to login from other console or change to root account, it gets blocked.
I've increased the sysctl fs.file-max to 300000 but the problem persists.
This raises the per-system limit only. per-process limits still apply as well as the maximum (maybe 4096, I'm not sure) is hardcoded into the kernel, so without recompiling you r kernel you can't exceed this limitation.
Any ideas what's going wrong?
Without seeing more details (syslog-ng version number, configuration, approximate number of clients, client configs) we could only guess. Regards, Sandor -------------------------------------------------------- NOTICE: If received in error, please destroy and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error.
On Thu, 2008-01-24 at 12:46 +0000, Geller, Sandor (IT) wrote:
Hi,
Hello,
I'm receiving many messages on my syslog-ng like this:
syslog-ng[20419]: Error opening file for writing; filename="...", error='Too many open files (24)' syslog-ng[20419]: Error accepting new connection; error='Too many open files (24)'
Try raising the per-process number of open files. Please refer to ulimit.
In lsof output, the syslog-ng daemon has many files opened and when I try to login from other console or change to root account, it gets blocked.
I've increased the sysctl fs.file-max to 300000 but the problem persists.
This raises the per-system limit only. per-process limits still apply as well as the maximum (maybe 4096, I'm not sure) is hardcoded into the kernel, so without recompiling you r kernel you can't exceed this limitation.
This is not true, the ulimit value can be changed at runtime, at least with a Linux kernel later than 2.0.x -- Bazsi
participants (4)
-
Balazs Scheidler
-
Geller, Sandor (IT)
-
Joe Fegan
-
Pedro Rafael Alves Simoes