You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Luis Miguel Cruz <lu...@b2bi.es> on 2004/08/24 11:43:15 UTC
[users@httpd] max file descriptors over apache2
Hi all,
As I understand there is a little problem when apache is offering mass
hosting services and the max file descriptors value.
Specially when apache create separated logs files for every vhost.
As I see into my FC1:
# ulimit -a | grep open
open files (-n) 1024
max file descriptors value is 1024, isn´t?
Since apache runs under httpd user and group... Can I modify max file
descriptors value for that user and his process?
Is here any problem if I change "open files" value to unlimited?
Regards.
Luis Miguel.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] max file descriptors over apache2
Posted by Rainer Traut <ra...@epost.de>.
Hi,
Luis Miguel Cruz wrote:
> As I understand there is a little problem when apache is offering mass
> hosting services and the max file descriptors value.
>
> Specially when apache create separated logs files for every vhost.
>
> As I see into my FC1:
>
> # ulimit -a | grep open
> open files (-n) 1024
>
> max file descriptors value is 1024, isn´t?
>
> Since apache runs under httpd user and group... Can I modify max file
> descriptors value for that user and his process?
>
> Is here any problem if I change "open files" value to unlimited?
maybe this what you're looking for, this did I post on the fedora ML.
/etc/security/limits.conf is the right place:
[root@asp5 root]# cat /etc/security/limits.conf |grep nofile
# - nofile - max number of open files
notes soft nofile 90000
notes hard nofile 90000
[root@asp5 root]# su - notes
[notes@asp5 notes]$ ulimit -a|grep files
open files (-n) 90000
Gruss
Rainer
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] max file descriptors over apache2
Posted by Joe Orton <jo...@redhat.com>.
On Tue, Aug 24, 2004 at 11:43:15AM +0200, Luis Miguel Cruz wrote:
> Specially when apache create separated logs files for every vhost.
>
> As I see into my FC1:
>
> # ulimit -a | grep open
> open files (-n) 1024
>
> max file descriptors value is 1024, isn´t?
If you're using the Fedora Core httpd package, add something like
"ulimit -n 4096" to /etc/sysconfig/httpd. Otherwise, adding the same to
bin/envvars within the install root should have the same effect.
> Since apache runs under httpd user and group... Can I modify max file
> descriptors value for that user and his process?
>
> Is here any problem if I change "open files" value to unlimited?
I don't think you can set it to unlimited, only some high value. You
can suffer problems in modules like mod_ssl and PHP, if they get fd
numbers which are greater than 1024 (due to use of the select() system
call); test things out carefully.
Regards,
joe
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org