LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-08-2016, 10:21 AM   #1
hilou
Member
 
Registered: May 2013
Posts: 93

Rep: Reputation: Disabled
rsyslogd-2079: too many tcp sessions


Hi All,

I met a rsyslog issue today. I have a rsyslog server to collect about 700 servers's log. But I got lots of error log like below:

Code:
2016-08-08T23:06:13.116992+08:00	hostname ip	5	3	rsyslogd-2079:	 too many tcp sessions - dropping incoming request [try http://www.rsyslog.com/e/2079 ]
And I got a 403 when try to access the page: http://www.rsyslog.com/e/2079


I have increated the InputTCPMaxSessions config to 3000. Check my config below:

Code:
# Use traditional timestamp format
$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat

# config maxmize TCP connections
$InputTCPMaxSessions 3000
# Provides kernel logging support (previously done by rklogd)
$ModLoad imklog

# Provides support for local system logging (e.g. via logger command)
$ModLoad imuxsock

$ModLoad imfile
# auditd audit.log
I got about 200 established connections with netstat -an | grep -i estab

Please help. I don't know what else I can do to fix this.


Code:
rsyslogd -v
rsyslogd 3.22.1

Last edited by hilou; 08-08-2016 at 10:21 AM. Reason: rsyslog
 
Old 08-09-2016, 04:49 AM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Where you load imtcp module? $InputTCPMaxSessions cannot be set before the module is loaded.
 
Old 08-09-2016, 07:28 AM   #3
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
rsyslogd 3 ?
Eek. Appliance?
 
Old 08-09-2016, 08:08 AM   #4
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
The usual upper limit is 1024 due to the limit on the select system call (and remember to subtract stderr/stdout and maybe stdin as well).

There appear to be some workarounds to this limit - but it looks to require compile time options to enable it (and there may be some kernel configurations to allow it - I can't tell from the source).

reference: http://git.adiscon.com/?p=rsyslog.gi...27ceb4443cbffe
 
Old 08-09-2016, 09:19 AM   #5
hilou
Member
 
Registered: May 2013
Posts: 93

Original Poster
Rep: Reputation: Disabled
Thank you all for your help. I fixed this by updating rsyslog to version 5.

But still don't know why version 3 doesn't work.

@ Emerson
$ModLoad imtcp is configured at the first line, and it's not in my config snippet.

@ Habitual
rsyslog3 doesn't support InputTCPMaxSessions config ?

@ jpollard
It should be working if the limit is 1024 since I have only about 700 servers.

Last edited by hilou; 08-09-2016 at 09:28 AM.
 
Old 08-09-2016, 09:36 AM   #6
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
Quote:
Originally Posted by hilou View Post
Thank you all for your help. I fixed this by updating rsyslog to version 5.

But still don't know why version 3 doesn't work.
,,,
@ jpollard
It should be working if the limit is 1024 since I have only about 700 servers.
Assuming each server only makes ONE connection. Granted I would think that would be the usual case, but sometimes two different message levels are wanted with two different entries - and that might make two connections.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to understand what rsyslogd does seabro Linux - Software 4 08-29-2014 01:52 PM
rsyslogd crashes while running as rsyslogd(rsyslogd -M /lib/rsyslog running well) vipul prajapati Linux - Server 1 03-22-2014 03:02 AM
Ping works but TCP sessions fail on custom Ethernet driver AustinMarton Linux - Networking 0 04-16-2009 08:42 PM
Dropped/hung TCP sessions on both NIC's, Compaq server with Debian doctorcisco Linux - Networking 1 01-16-2006 08:16 AM
limiting concurrent TCP sessions from a single IP n3tw0rk Linux - Security 2 12-31-2003 06:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration