[syslog-ng]Increase accepting AF_UNIX connection value

Balazs Scheidler bazsi@balabit.hu
Tue, 4 Feb 2003 09:49:13 +0100


On Tue, Feb 04, 2003 at 02:23:55PM +0600, Serge Leschinsky wrote:
> Dear Sirs.
> 
> I have been having a lot of messages in log file for last time:
> > Feb  4 13:07:37 lapa syslog-ng[231]: Error accepting AF_UNIX connection, opened connections: 100, max: 100
> > Feb  4 13:07:38 lapa syslog-ng[231]: Error accepting AF_UNIX connection, opened connections: 100, max: 100
> > Feb  4 13:08:05 lapa syslog-ng[231]: Error accepting AF_UNIX connection, opened connections: 100, max: 100
> > Feb  4 13:08:05 lapa syslog-ng[231]: Error accepting AF_UNIX connection, opened connections: 100, max: 100
> > Feb  4 13:08:05 lapa syslog-ng[231]: Error accepting AF_UNIX connection, opened connections: 100, max: 100
>  If I understand correctly, processes try to open too many sockets.
> So, I want to ask the community about typical value of this parameter,
> the reason of lack of socket and where I can increase this value (100)
> for resolving this problem.

source s_local { unix-stream("/dev/log" max_connections(1000)); };

The number of required connections greatly depend on your local
configuration. Basically each logging process need one connection to
/dev/log, though fd inheritance may decrease this number. (parent process
opens connection, child inherits and uses the fd)

-- 
Bazsi
PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1