Hi,
You can check the current value by doing :
cat /proc/sys/fs/file-max
(2.4 series kernels)
or
cat /proc/sys/kernel/file-max
(2.2 series kernels)
You would change the default by doing:
echo "8192" > /proc/sys/fs/file-max
(2.4 series kernels)
or
echo "8192" > /proc/sys/kernel/file-max
(2.2 series kernels)
The approx recommended value is 256 for every 4mb of physical ram - e.g. 128mb = 8192.
If you are on a 2.2 kernel, you should also increase the value of '/proc/sys/kernel/inode-max' to keep it around 4 times the 'file-max' value (same syntax as above).
Also, if you are compliing your own 2.4 kernels, you can change the default values in :
/usr/src/linux/include/linux/fs.h
i.e.
#define NR_FILE 8192 /* this can well be larger on a larger system */
#define NR_RESERVED_FILES 10 /* reserved for root */
Regards