[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] How do you increase allowed open files?



> The docs I find on redhats site are very clear.  They state that
> /proc/sys/kernel/file-max contains the number of open files and if
> you want to increase the do: "echo 4096 > /proc/sys/kernel/file-max" 
> to increase the allowd open files to 4096.
> One BIG problem I see!!!  file-max doesn't exist in the /proc/sys/kernel
> folder and you can not create it because of the read only permissions on the
> folder. And you can not change the permissions on the folder either.
> So does anyone know how to increase the limit of files the kernel can
> have open at one time?

Sorry not to answer your question but you might be running into the problem
described below. 

I recently found a bug in the RaQ 4 admin server where every night when sent
the HUP command it doesn't reset it's file handles properly.   So if you look in:
/proc/<base pid of /usr/sbin/httpd -f /etc/admserv/conf/httpd.conf>/fd

You will a see bunch of:
9 -> /usr/lib/perl5/site_perl/5.005/Cobalt/Ssl.pm
8 -> /usr/lib/perl5/site_perl/5.005/Cobalt/Util.pm

Try using /etc/rc.d/init.d/admserv restart if you need more file handles. 

Jeff-