🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #47847

Re: Control for maximum NNTP connection

#47847
From: Anonymous Coward
Date: Mon, 14 Aug 2000 00:00
40 lines
2666 bytes
On 12 Aug 19100, Arthur S.L. Hsieh wrote:

> maxconnections in inn.conf can be used to control the maximum number
> of accepted NNTP connections.  We're using the default value of 50 but
> it seems that innd just ignores that value and allows unbound NNTP
> connections until our news server runs out of memory.  Does anyone
> encounter the same problem?

Well, no.

I've compiled INN with FD_SETSIZE set to 1024 to allow select()
not to fall over with more than ~250 incoming feeds.  In spite
of the number of incoming connections regularly exceeding 400 at
some time in the past, I've never seen memory usage grow to the
point where things come close to falling over.

Note that the default set in $INN/bin/rc.news is to give flags of
"-i 0" to innd, meaning unlimited connections, even if your source
is compiled to use a different number.  Just to play it safe, as
this limit sets a reasonable safety valve if the number of incoming
connections approaches the limit of select(), I've adjusted this
to -i 900-something.

You can see the value in use with the `ctlinnd mode' command,
following the ` i ' early in the output of this command.  If it
is zero, then suspect your rc.news flags.
Parameters c 14 i 892 (184) l 16000000 o 16411 t 300 ...
                ^^^^^
However, while you can set this down to 50 or so, if you are seeing
some sort of apparent memory leak, then something else is wrong,
since you should be able to handle well over 50 incoming connections.
By far the largest memory needs of INN will be for the history
database files.  That's what I consider to be the `problem' you
mention, not the fact that the limit you specified is exceeded.


Meow meow && meow


Technical Details
Message-ID: <Pine.BSF.4.21.0008141950390.21502-100000@vax.chrillesen.dk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <ufk8dmr0m3.fsf@pc1.school.net.hk>

Show Full Headers
Complete Article Headers
Message-ID: <Pine.BSF.4.21.0008141950390.21502-100000@vax.chrillesen.dk>
Subject: Re: Control for maximum NNTP connection
Date: Mon, 14 Aug 2000 00:00:00 +0000
From: Anonymous Coward <newsb'stard@free-N0RP.netSCUM.dk>
References: <ufk8dmr0m3.fsf@pc1.school.net.hk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 658213927
X-Sender: barry@vax.chrillesen.dk
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Complaints-To: Department of Written Abuse <abuse@news.inet.tele.dk>
X-Trace: news.inet.tele.dk 966276142 18254 193.88.12.35 (Mon 2540 September 1993 18:02:22 GMT)
Organization: Tele Danmark Internet Cyberspace Launchpad
Mime-Version: 1.0
NNTP-Posting-Date: Mon 2540 September 1993 18:02:22 GMT
Newsgroups: news.software.nntp