I am getting an error about to many open files. I tried to "echo 500000 > /proc/sys/fs/file-max" The number is there now, but I continue to get the error. Is there something else to do? Jerry
On Thu, 2010-08-19 at 13:44 -0400, Jerry Geis wrote:> I am getting an error about to many open files. > I tried to "echo 500000 > /proc/sys/fs/file-max" > The number is there now, but I continue to get the error. > > Is there something else to do?----For EL 5? You don't say? # /etc/security/limits.conf # Open File Descriptors * - nofile 8192 --- Just how many do you have open? http://www.mjmwired.net/kernel/Documentation/sysctl/fs.txt There is also a per user basis also. John My advise is to stay way from setting it via /proc. You could still be getting the warning because the system has not read proc very busy machines I have seen this.
On Thu, Aug 19, 2010 at 1:44 PM, Jerry Geis <geisj at pagestation.com> wrote:> I am getting an error about to many open files. > I tried to "echo 500000 > /proc/sys/fs/file-max" > The number is there now, but I continue to get the error. > > Is there something else to do?Yes, providing detail. Tell us *what* exactly is giving you that error. -- During times of universal deceit, telling the truth becomes a revolutionary act. George Orwell
lists-centos wrote:> Is this a dedicated machine, or some type of virtual hosted > environment? > > I got this error in a (centos 4.x) virtual hosted environment > recently when I exceeded my allowed process count (I was well below > my open files limit). > > > - Richard > > > ------------ Original Message ------------ > >> Date: Thursday, August 19, 2010 01:44:47 PM -0400 >> From: Jerry Geis <geisj at pagestation.com> >> To: CentOS ML <centos at centos.org> >> Subject: [CentOS] too many open files >> >> I am getting an error about to many open files. >> I tried to "echo 500000 > /proc/sys/fs/file-max" >> The number is there now, but I continue to get the error. >> >> Is there something else to do? >> >> Jerry >> _______________________________________________ >> CentOS mailing list >> CentOS at centos.org >> http://lists.centos.org/mailman/listinfo/centos >> > > ------------ End Original Message ------------ > > > >seems like there is a global value (which I did above) and a process limit ulimit -a tells all limits and ulimit -n 2048 seemed to work for me. Although I had to kill hte process and restart it. Thanks, jerry