You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Russ <ca...@sensebubble.co.uk> on 2002/05/27 15:27:27 UTC

open files

Hi

We're running Server version: Apache/1.3.23 (Unix) on RedHat 7.2. We have
around 600 VS setup, each with a custom log file. Apache is saying:

Too many open files: couldn't spawn child process:

in the error log when ever perl scripts are executed. I've been looking on
the web for ages for this problem and nothing seems to be really helpfull,
does anyone have any ideas where the proble could be?

ulimit -a gives me:

[root@linux5 /]# ulimit -a
core file size (blocks)     0
data seg size (kbytes)      unlimited
file size (blocks)          unlimited
max locked memory (kbytes)  unlimited
max memory size (kbytes)    unlimited
open files                  1024
pipe size (512 bytes)       8
stack size (kbytes)         8192
cpu time (seconds)          unlimited
max user processes          2048
virtual memory (kbytes)     unlimited

/proc/sys/fs/file-max is set to 65536

its on 7.2 so i cannot change the inode-max on the kernal.

Any help would be aprecated.

Thanks

Russ


Re: open files

Posted by Robert Andersson <ro...@profundis.nu>.
Russ wrote:

>
> Hi
>
> We're running Server version: Apache/1.3.23 (Unix) on RedHat 7.2. We have
> around 600 VS setup, each with a custom log file. Apache is saying:

>
> Too many open files: couldn't spawn child process:

With that many vhosts, you shouldn't keep a separate log file open for each,
due to the enormuos overhead. I suggest you log all (or most) activity to
one or a few log files, and find, or write, a program that frequently split
them on a vhost basis. I know that such utilities are in existens and been
discussed around here, but I have not yet felt the need (like you now) to
implement such solution myself. Perhaps some nice fellow around would point
you to information about this.

Regards,
Robert Andersson




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org