[syslog-ng] Too Many Open Files
Fred Connolly
fred.connolly at gmail.com
Wed Jan 14 15:52:25 CET 2009
Thanks for the help Bazsi!! I ended up just putting this
set rlim_fd_max=4096
set rlim_fd_cur=4096
in etc/system and rebooted the system.
Regards
Zeek
On Wed, Jan 14, 2009 at 6:28 AM, Balazs Scheidler <bazsi at balabit.hu> wrote:
> On Tue, 2009-01-13 at 09:34 -0500, Zeek Anow wrote:
>> We are running Solaris 9, syslog-ng 2.0.5,
>>
>> We are getting:
>> Error opening file for writing; filename='/logs/combo/combo.log.01',
>> error='Too many open files (24)'
>>
>> I went into the startup script, /etc/init.d/syslog-ng and tried to up
>> the limit by putting this in the startup section:
>>
>> ulimit -n 4096.
>>
>> When I stop and start syslog-ng and look at the ulimit settings, it
>> still shows 256.
>> core file size (blocks, -c) unlimited
>> data seg size (kbytes, -d) unlimited
>> file size (blocks, -f) unlimited
>> open files (-n) 256
>> pipe size (512 bytes, -p) 10
>> stack size (kbytes, -s) 8192
>> cpu time (seconds, -t) unlimited
>> max user processes (-u) 29995
>> virtual memory (kbytes, -v) unlimited
>>
>> Any ideas on how to set this?
>>
>> Thanks,
>
> ulimits are inherited through the process tree, e.g. if you change
> ulimit in your shell, then the executed processes will have that ulimit.
>
> However if you change it in the syslog-ng init script, that change won't
> be propagated back to your login shell.
>
> Try reading the ulimit values right from the init script to see if they
> are in effect.
>
> Please note that syslog-ng 3.0 already increases ulimit for itself, to
> 4096 fds by default, but you can change those using command line
> options. (also, it is able to restart itself upon failure and send out
> an email in this case).
>
> --
> Bazsi
>
> ______________________________________________________________________________
> Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
> Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng
> FAQ: http://www.campin.net/syslog-ng/faq.html
>
>
More information about the syslog-ng
mailing list