The error "open files rlimit 1024 reached for uid 1001 pid 6070" is posted to my /var/log/messages every few seconds. I am guessing it it apache since apache is running as UID 1001. I am having problems opening awstats reports, and creating images with ImageMagick. I am running about 200 websites with about 700 000 uniqe sessions pr month. Anyone have any ideas?
Martin, You'll need to open /etc/security/limits.conf and make the changes there. Shouldn't be too hard
I tried setting the limit in the kernel setting to 2048 files. This looks like it had no effect. As far as I read from this the current setting is 2048, and still the messages log says it has a rlimit of 1024. Is this setting somewhere else? box1:/www/webmail # ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited file size (blocks, -f) unlimited max locked memory (kbytes, -l) unlimited max memory size (kbytes, -m) unlimited open files (-n) 2048 pipe size (512 bytes, -p) 8 stack size (kbytes, -s) unlimited cpu time (seconds, -t) unlimited max user processes (-u) 12288 virtual memory (kbytes, -v) unlimited box1:/www/webmail # tail /var/log/messages May 22 23:05:20 box1 kernel: open files rlimit 1024 reached for uid 1001 pid 25079 May 22 23:05:20 box1 kernel: open files rlimit 1024 reached for uid 1001 pid 25079 May 22 23:05:37 box1 kernel: printk: 2 messages suppressed. May 22 23:05:37 box1 kernel: open files rlimit 1024 reached for uid 1001 pid 24550 May 22 23:05:37 box1 last message repeated 3 times