Increase accepting AF_UNIX connection value
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.
Thank you in advance. -- Yours sincerely Serge Leschinsky mailto:fish@artlife.tomsknet.ru Tuesday, February 4, 2003
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
Dear Balazs. On Tuesday, the 4th of February, 2003, at 09:49 GMT +01 (14:49, the same day my local time), you wrote about "[syslog-ng]Increase accepting AF_UNIX connection value", at least in part:
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.
BS> source s_local { unix-stream("/dev/log" max_connections(1000)); }; BS> The number of required connections greatly depend on your local BS> configuration. Basically each logging process need one connection to BS> /dev/log, though fd inheritance may decrease this number. (parent process BS> opens connection, child inherits and uses the fd) Thank you very much for your so quick and kind reply! I've increased max_connections and all seems working fine. Thank you once again! -- Yours sincerely Serge Leschinsky mailto:fish@artlife.tomsknet.ru Tuesday, February 4, 2003
participants (2)
-
Balazs Scheidler
-
Serge Leschinsky