🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #47936

Re: Control for maximum NNTP connection

#47936
From: Arthur S.L. Hsieh
Date: Fri, 18 Aug 2000 00:00
54 lines
2862 bytes
Anonymous Coward <newsb'stard@free-N0RP.netSCUM.dk> writes:

> 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.

This is what I got:

Parameters c 14 i 50 (0) l 1000000 o 51 t 300 H 2 T 60 X 0 ...
...
Aug 17 00:14:58 news innd: SERVER cant exec in
/usr/local/news/bin/nnrpd Not enough space

> 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 ...
>                 ^^^^^

The output from `ctlinnd mode' is

Parameters c 14 i 50 (0) l 1000000 o 51 t 300 H 2 T 60 X 0 normal
specified

The output always gives ... i 50 (0) ... and I've never seen any
changes in value inside the bracket.  That is always zero.

> 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.

Although I've set the maxconnections to 50, I can see the number of
nnrpd processes to be well over 100.  I feel the paramater is
completely ineffective.

-- 
Arthur Hsieh

Technical Details
Message-ID: <ufbsyqwtbz.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
References: <ufk8dmr0m3.fsf@pc1.school.net.hk> <Pine.BSF.4.21.0008141950390.21502-100000@vax.chrillesen.dk>

Show Full Headers
Complete Article Headers
Message-ID: <ufbsyqwtbz.fsf@pc1.school.net.hk>
Subject: Re: Control for maximum NNTP connection
Date: Fri, 18 Aug 2000 00:00:00 +0000
From: arh@school.net.hk (Arthur S.L. Hsieh)
References: <ufk8dmr0m3.fsf@pc1.school.net.hk> <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
X-Deja-AN: 659743135
X-Complaints-To: abuse@erg.cuhk.edu.hk
X-Trace: eng-ser1.erg.cuhk.edu.hk 966608001 10183 202.45.183.31 (18 Aug 2000 14:13:21 GMT)
Organization: Hong Kong School Net
NNTP-Posting-Date: 18 Aug 2000 14:13:21 GMT
Newsgroups: news.software.nntp