Nick Jennings wrote:
Hello,

I'm running a RHEL5 system as a virtual hosting server, (virtualmin). I've got about 1000~ sites operating at the moment. A few months ago Apache stopped functioning, a bunch of errors about "Too many open files". I don't have the exact messages anymore, but I tried a number of things in the /proc/ filesystem to raise the limit, not of which seemed to have an effect. Long story short, I ended up changing the apache config, and putting all 2000+ apache logs into just two files (access & error logs, which was obviously not the ideal fix, but I was unable to get any reaction from the system when changing the open file limits. I left it set at:

# cat /proc/sys/fs/file-max
1334555


Fast forward to this morning, apparently for a brief period of time (not more than an hour I assume) I had this same issue pop up (first time since). After doing a bit of searching I (finally) realized perhaps this was because of my /etc/security/limits.conf settings? (I overlooked this the first time, at least I think I did).

So I changed the limits for apache:

< @apache         -       nofile          4096

Anything in /var/log/messages? I'm thinking the kernel mighr be saying something.



--

Cheers
John

-- spambait
[EMAIL PROTECTED]  [EMAIL PROTECTED]
-- Advice
http://webfoot.com/advice/email.top.php
http://www.catb.org/~esr/faqs/smart-questions.html
http://support.microsoft.com/kb/555375

You cannot reply off-list:-)

_______________________________________________
rhelv5-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rhelv5-list

Reply via email to