Article View: news.software.nntp
Article #18567Re: news server crash...
From: Matt Dillon
Date: Sun, 22 Jun 1997 00:00
Date: Sun, 22 Jun 1997 00:00
48 lines
2174 bytes
2174 bytes
:In article <01bc7f17$9230d360$827e1bcc@rodia>,
:Raul Zighelboim <nospam@communique.net> wrote:
:>
:>Hello there!
:>
:>My news server died last night. This is what I found on the log files:
:>
:>Jun 22 01:53:00 kiyoko /kernel: Out of mbuf clusters - increase maxusers!
:>
:>I am running inn 1.5.1 under FreeBSD 2.2.2-Release.
:>
:>What I find odd about this, is that the server has been running fine for
:>over a year under FreeBSD 2.1.7, and that 'maxusers' is set to 196 already.
:>
:>I upgraded to 2.2.2 friday afternoon. I run news.daily at 1:00 am.
:>
:>Any sugestions in how to prevent this from happening again ?
:>
:>Thanks.
It's probably the number of network mbufs.
First, the tcp send&receive buffer size. It's in two places... a
sysctl (net.inet.tcp.sendspace and net.inet.tcp.recvspcae), and
also in the default route. The default is 16KBytes, which means
16Kx2 is allocated for each network connection. If you have a lot
of connections, aka a newsreader box, you can run the kernel out of
network mbufs.
Try reducing the buffer size:
sysctl -w net.inet.tcp.sendspace=4096
sysctl -w net.inet.tcp.recvspace=4096
route -n change default -recvpipe 4096 -sendpipe 4096
If that doesn't work, try increasing the number of mbufs for the
network by recompiling the kernel and adding the option:
options "NMBCLUSTERS=4096" #network mbufs
If that doesn't work, see if you can figure out what the kernel is running
out of by running vmstat -m at regular intervals.
-Matt
Technical Details
Message-ID:
<5ojtd6$aga$1@flea.best.net>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-mailReferences:
<01bc7f17$9230d360$827e1bcc@rodia>Show Full Headers
Complete Article Headers
Message-ID: <5ojtd6$aga$1@flea.best.net> Subject: Re: news server crash... Date: Sun, 22 Jun 1997 00:00:00 +0000 From: dillon@flea.best.net (Matt Dillon) References: <01bc7f17$9230d360$827e1bcc@rodia> 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: 251831733 Organization: Best Internet Communications, Inc. - 415 964 BEST Newsgroups: news.software.nntp