&gt; ------------------------------<br>&gt; <br>&gt; Message: 3<br>&gt; Date: Thu, 24 Jan 2008 12:41:36 +0000<br>&gt; From: Joe Fegan &lt;<a href="mailto:joe_fegan@hotmail.com">joe_fegan@hotmail.com</a>&gt;<br>&gt; Subject: Re: [syslog-ng] Syslog-ng too many open files<br>
&gt; To: Syslog-ng users&#39; and developers&#39; mailing list<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;<a href="mailto:syslog-ng@lists.balabit.hu">syslog-ng@lists.balabit.hu</a>&gt;<br>&gt; Message-ID: &lt;<a href="mailto:BAY111-W20A021959661E71A0B78C39B380@phx.gbl">BAY111-W20A021959661E71A0B78C39B380@phx.gbl</a>&gt;<br>
&gt; Content-Type: text/plain; charset=&quot;windows-1256&quot;<br>&gt; <br>&gt; <br>&gt; What version of syslog-ng is this? Is it 2.0.7?<br>&gt; <br>&gt; Could it be the same issue recently reported as &quot;syslog-ng 2.0.7 major problem?&quot;<br>
&gt; in the list archives, where syslog-ng 2.0.7 does not close old files after SIGHUP?<br>&gt; 300,000 is a lot of files...<br>&gt;<br><span style="color: rgb(51, 51, 255);">I&#39;m using Syslog-ng 2.0.0-1 in a Debian Etch Linux.</span><br style="color: rgb(51, 51, 255);">
&nbsp;<br>&gt; ------------------------------<br>&gt; <br>&gt; Message: 4<br>&gt; Date: Thu, 24 Jan 2008 12:46:53 -0000<br>&gt; From: &quot;Geller, Sandor \(IT\)&quot; &lt;<a href="mailto:Sandor.Geller@morganstanley.com">Sandor.Geller@morganstanley.com</a>&gt;<br>
&gt; Subject: Re: [syslog-ng] Syslog-ng too many open files<br>&gt; To: &quot;Syslog-ng users&#39; and developers&#39; mailing list&quot;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;<a href="mailto:syslog-ng@lists.balabit.hu">syslog-ng@lists.balabit.hu</a>&gt;<br>
&gt; Message-ID:<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;<a href="mailto:14F0A35F6E466D48BF11108F4E09E68C0970D239@LNWEXMB58.msad.ms.com">14F0A35F6E466D48BF11108F4E09E68C0970D239@LNWEXMB58.msad.ms.com</a>&gt;<br>&gt; Content-Type: text/plain; &nbsp; &nbsp; &nbsp; charset=&quot;us-ascii&quot;<br>
&gt; <br>&gt; Hi,<br>&gt; <br>&gt; &gt; Hello,<br>&gt; &gt;<br>&gt; &gt; I&#39;m receiving many messages on my syslog-ng like this:<br>&gt; &gt;<br>&gt; &gt; syslog-ng[20419]: Error opening file for writing; filename=&quot;...&quot;,<br>
&gt; &gt; error=&#39;Too many open files (24)&#39;<br>&gt; &gt; syslog-ng[20419]: Error accepting new connection; error=&#39;Too many open<br>&gt; &gt; files (24)&#39;<br>&gt; <br>&gt; Try raising the per-process number of open files. Please refer to<br>
&gt; ulimit.<br>&gt; <br>&gt; &gt; In lsof output, the syslog-ng daemon has many files opened and when I<br>&gt; &gt; try to login from other console or change to root account, it gets<br>&gt; &gt; blocked.<br>&gt; &gt;<br>
&gt; &gt; I&#39;ve increased the sysctl fs.file-max to 300000 but the<br>&gt; &gt; problem persists.<br>&gt; <br>&gt; This raises the per-system limit only. per-process limits still<br>&gt; apply as well as the maximum (maybe 4096, I&#39;m not sure) is hardcoded<br>
&gt; into the kernel, so without recompiling you r kernel you can&#39;t exceed<br>&gt; this limitation.<br><span style="color: rgb(51, 51, 255);">When you said that&#39;s hardcoded, you mean that I have to change the source code or it&#39;s configurable via make config?<br>
<br style="color: rgb(51, 51, 255);"></span>&gt; <br>&gt; &gt; Any ideas what&#39;s going wrong?<br>&gt; <br>&gt; Without seeing more details (syslog-ng version number, configuration,<br>&gt; approximate number of clients, client configs) we could only guess.<br>
&gt; <br>&gt; Regards,<br>&gt; <br>&gt; Sandor<br>&gt; --------------------------------------------------------<br>&gt; <br>&gt; 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.<br>
&gt; <br>&gt; <br><br>