RE: Too many open files: newsx 1.4pl8

"Triebwasser, Mark" <[email protected]> Fri, 10 Jan 2003 14:54:43 -0700
Newsgroups gmane.network.newsx
Message-ID <[email protected]>
Thierry,

Have you ever noticed your open file descriptor count(pstat -T) go up whi=
le
running
newsx?  I was pulling down 10,000 articles and my kern.maxfiles was set t=
o
1800.  Maybe you haven't pulled down(within one run of newsx) 8000+ artic=
les
to get the "Too many open files" error.

Mark

-----Original Message-----
From: Thierry Thomas [mailto:[email protected]]
Sent: Friday, January 10, 2003 10:48 AM
To: '[email protected]'
Subject: Re: Too many open files: newsx 1.4pl8


Le Ven 10 jan 03 =E0 17:11:52 +0100,
 Triebwasser, Mark <[email protected]> =E9crivait=A0:
> Has anyone had issues where newsx gets a "Too many open files" error?  =
I'm
> running newsx on a i386 FreeBSD machine.

No. I'm running newsx since FreeBSD 4.0, and I've never got this error.
However, it's quite common with a lot of applications...

> >inserting newsx path
> >newsx: can't open incoming spool
> "/usr/local/news/spool/incoming/.tmp.gig2.33553": Too many open files
> >transfer interrupted
> >latest article was 5080555
> >no spool to flush
> >state: pull: cleanup
> >no news is good news!
> >state: aborting server
> >->QUIT
> ><- 205 GoodBye
> >unlocked: /usr/local/news/run/L.33553
> >unlocked: /usr/local/news/run/LOCK.newsx.gig2
> >unlocked: /usr/local/news/run/LOCK.gig2
>=20
> Should I be changing the shell's limit or should I be doing a kernel
> rebuild?

It's not necessary to build a new kernel. Just have a look at the
Handbook, =A7 6.11.1.1 (or
<http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/configtuning-k=
ern
el-limits.html>).

What does `sysctl kern.maxfiles' report?
(here I have:
kern.maxfiles: 8192
)

If it's too small, just run=20
sysctl -w kern.maxfiles=3Dxxxx

Regards,
--=20
Th. Thomas.

-----------------------------------------------------------------------
This message has been sent to you because you are subcribed to the mailin=
g
list [email protected]. To remove yourself from this lists, send an emai=
l
to
[email protected] containing "unsubscribe newsx <your_email_address>=
"
in the message body.

-----------------------------------------------------------------------
This message has been sent to you because you are subcribed to the mailin=
g
list [email protected]. To remove yourself from this lists, send an emai=
l to
[email protected] containing "unsubscribe newsx <your_email_address>=
"
in the message body.