Thread View: news.software.nntp
6 messages
6 total messages
Started by Arthur S.L. Hsieh
Sat, 12 Aug 2000 00:00
Control for maximum NNTP connection
Author: Arthur S.L. Hsieh
Date: Sat, 12 Aug 2000 00:00
Date: Sat, 12 Aug 2000 00:00
11 lines
1077 bytes
1077 bytes
We're running INN 2.2.2 on Solaris 2.6. According to inn.conf(5), 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? -- Arthur Hsieh
Re: Control for maximum NNTP connection
Author: Anonymous Coward
Date: Mon, 14 Aug 2000 00:00
Date: Mon, 14 Aug 2000 00:00
40 lines
2666 bytes
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
Re: Control for maximum NNTP connection
Author: Arthur S.L. Hsieh
Date: Fri, 18 Aug 2000 00:00
Date: Fri, 18 Aug 2000 00:00
54 lines
2862 bytes
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
Re: Control for maximum NNTP connection
Author: Anonymous Meoward
Date: Fri, 18 Aug 2000 00:00
Date: Fri, 18 Aug 2000 00:00
46 lines
2772 bytes
2772 bytes
On 2544 Sep 1993, Arthur S.L. Hsieh wrote: > This is what I got: > Aug 17 00:14:58 news innd: SERVER cant exec in > /usr/local/news/bin/nnrpd Not enough space This is your error. Someone who has seen this (I haven't) will have to explain the cause of it. (GET MORE SPACE!!!) > 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 > > The output always gives ... i 50 (0) ... and I've never seen any > changes in value inside the bracket. That is always zero. So you have no incoming feeds. And if you did, you could get no more than 50, after which anything following would be given a `400 too many connections' rejection message > 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. maxconnections has nothing to do with nnrpd. maxconnections only has to do with your feedsites, and there it will work fine. What you need to do is to start nnrpd in a way that you can only fork a limited number of them -- if 100 readers is enough to topple your machine and you can't upgrade things to support more and you're actually seeing 100+ readers and not some other bug that results in a lot of leftover nnrpd processes, then you might want to start nnrpd not from innd (where you saw the error trying to exec), but from, say, tcpswerver, where the number of nnrpd processes can be limited... # /news/bin/tcpserver -R -c100 -g100 -u101 -x/news/bin/rules.cdb your.hostname 119 /news/bin/nnrpd (tweak -c -- the number of connections -- to keep things alive, adjust the other parameters to match your particular setup) mmmmmmmmeow
Re: Control for maximum NNTP connection
Author: Arthur S.L. Hsieh
Date: Sun, 20 Aug 2000 00:00
Date: Sun, 20 Aug 2000 00:00
46 lines
2890 bytes
2890 bytes
Anonymous Meoward <meower@free-N0RP.netSCUM.dk> writes: > On 2544 Sep 1993, Arthur S.L. Hsieh wrote: > > 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 > > > > The output always gives ... i 50 (0) ... and I've never seen any > > changes in value inside the bracket. That is always zero. > > So you have no incoming feeds. And if you did, you could get no > more than 50, after which anything following would be given a > `400 too many connections' rejection message Actually we've one incoming news feed. > > 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. > > maxconnections has nothing to do with nnrpd. maxconnections only > has to do with your feedsites, and there it will work fine. > > What you need to do is to start nnrpd in a way that you can > only fork a limited number of them -- if 100 readers is enough > to topple your machine and you can't upgrade things to support > more and you're actually seeing 100+ readers and not some other > bug that results in a lot of leftover nnrpd processes, then > you might want to start nnrpd not from innd (where you saw the > error trying to exec), but from, say, tcpswerver, where the > number of nnrpd processes can be limited... > # /news/bin/tcpserver -R -c100 -g100 -u101 -x/news/bin/rules.cdb > your.hostname 119 /news/bin/nnrpd > (tweak -c -- the number of connections -- to keep things alive, > adjust the other parameters to match your particular setup) Unfortunately I can't use tcpserver to control the number of nnrpd processes as port 119 is also used by innd to accept incoming news feed. Since innd is responsible for accepting incoming connections at port 119, I feel maxconnections should count both incoming news feed and reader connections. However, it seems this is not the case. -- Arthur Hsieh
Re: Control for maximum NNTP connection
Author: Brad Knowles
Date: Mon, 21 Aug 2000 00:00
Date: Mon, 21 Aug 2000 00:00
19 lines
1692 bytes
1692 bytes
In article <ufr97ke1oo.fsf@pc1.school.net.hk>, arh@school.net.hk
(Arthur S.L. Hsieh) wrote:
> Unfortunately I can't use tcpserver to control the number of nnrpd
> processes as port 119 is also used by innd to accept incoming news
> feed.
You could always run INN on a different dedicated port (443 seems
popular), and then have your incoming feed change what port they connect
to. You could then run a "dedicated" nnrp/nnrpd listening to port 119.
--
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>
"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety."
-Benjamin Franklin, Historical Review of Pennsylvania.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads