Subject: file: table is full
To: None <netbsd-help@netbsd.org>
From: Martti Kuparinen <martti.kuparinen@iki.fi>
List: netbsd-help
Date: 11/23/2005 16:44:44
Hi!
I had to reboot my server because it was totally unresponsive and
I was unable to login from the console. From /var/log/messages:
Nov 22 02:56:52 www ctl_cyrusdb[2452]: checkpointing cyrus databases
Nov 22 02:56:52 www ctl_cyrusdb[2452]: done checkpointing cyrus databases
Nov 22 02:58:46 www /netbsd: file: table is full - increase kern.maxfiles or
MAXFILES
Nov 22 02:59:18 www last message repeated 14 times
Nov 22 03:01:21 www last message repeated 438 times
Nov 22 03:10:33 www last message repeated 1076 times
Nov 22 03:10:33 www /netbsd: e is full - increase kern.maxfiles or MAXFILES
Nov 22 03:10:33 www /netbsd: file: table is full - increase kern.maxfiles or
MAXFILES
Nov 22 03:10:33 www last message repeated 2279 times
Nov 22 03:10:33 www /netbsd: e is full - increase kern.maxfiles or MAXFILES
Nov 22 03:10:33 www /netbsd: file: table is full - increase kern.maxfiles or
MAXFILES
Nov 22 03:10:33 www last message repeated 3583 times
At the same time in /var/log/maillog:
Nov 22 02:56:12 www postfix/anvil[4568]: statistics: max connection rate 1/60s
for (smtp:62.142.5.93) at Nov 22 02:52:51
Nov 22 02:56:12 www postfix/anvil[4568]: statistics: max connection count 1 for
(smtp:62.142.5.93) at Nov 22 02:52:51
Nov 22 02:56:12 www postfix/anvil[4568]: statistics: max cache size 1 at Nov 22
02:52:51
Nov 22 02:59:20 www postfix/master[4055]: warning: master_wakeup_timer_event:
service public/pickup: Too many open files in system
Nov 22 03:00:20 www postfix/pickup[8264]: fatal: open
/usr/pkg/etc/postfix/main.cf: Too many open files in system
Nov 22 03:00:21 www postfix/master[4055]: warning: process
/usr/pkg/libexec/postfix/pickup pid 8264 exit status 1
Nov 22 03:00:21 www postfix/master[4055]: warning:
/usr/pkg/libexec/postfix/pickup: bad command startup -- throttling
Now the question is how can find the cause for this, i.e. where would you
start looking? I'm running NetBSD/i386 3.0_RC1 on this box.
I have these in my /etc/sysctl.conf:
# Max open files
kern.maxfiles=5000
# Gateway
net.inet.ip.forwarding=1
net.inet6.ip6.forwarding=1
# Kernel debugger
ddb.onpanic=0
Martti