Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

error of "/kernel: file: table is full"

Status
Not open for further replies.

koeicjm

Programmer
Sep 12, 2001
73
JP
I use freebsd 4.4 to run our server programs,
and after 2 days or 3days server becomes down,
and the messages log files always said :
/kernel: file: table is full

I think it is because there must be some file handles not
closed after used , so the question is that I want to know how can I get the numbers of current file tables .
 
#sysctl -a |grep kern | more
this will give you all the values in kern.something vars on the system
good reading is:

Operational system: FreeBSD 4.x-RELEASE
Message: "kernel: table is full"

This happens because the number of open files at the same time on the system is less than server needs.
To correct this:
1 - create or edit this file:
/etc/sysctl.conf
and insert or edit the line:
kern.maxfiles=16384
------
2 - or:
sysctl -w kern.maxfiles=16384

also check this out:
$0.02
 
You need a custom kernel and in kernel configuration increase 'max users' -- I've set my to 256.

craig
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top