Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

open files rlimit 1024 reached for uid 1001 pid 6070

Status
Not open for further replies.

Phara0h

Programmer
Aug 1, 2004
18
0
0
NO
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?
 
Good idea...

I grabbed a new pid from the messages log and got this:

ftpuser 22963 0.2 0.6 108600 21056 ? S 22:57 0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf


(My Apache runs as ftpuser)
 
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:/ # 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:/ # 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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top