You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Wee Teck Neo <sl...@msn.com> on 2003/10/30 07:29:40 UTC
[users@httpd] Linux FD limit
A bit out of topic here, anyone knows how to permanently set a higher FD
Limit instead of the standard 1024 in RedHat 9?
Currently i'm setting a higher limit by setting a higher limit in
/etc/security/limits.conf
then issue a ulimit -n 8192
But this setting is lost after i log off.
Kernel : 2.4.22
_________________________________________________________________
Get 10mb of inbox space with MSN Hotmail Extra Storage
http://join.msn.com/?pgmarket=en-sg
---------------------------------------------------------------------
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] Linux FD limit
Posted by Leif W <wa...@usa.net>.
----- Original Message -----
From: "Wee Teck Neo" <sl...@msn.com>
To: <us...@httpd.apache.org>
Sent: Thursday, October 30, 2003 1:29 AM
Subject: [users@httpd] Linux FD limit
> A bit out of topic here, anyone knows how to permanently set a higher FD
> Limit instead of the standard 1024 in RedHat 9?
>
> Currently i'm setting a higher limit by setting a higher limit in
> /etc/security/limits.conf
>
> then issue a ulimit -n 8192
>
> But this setting is lost after i log off.
Have you tried modifying the apache startup script? I forget what it's
called in RedHat, /etc/init.d/apache or httpd or /etc/rc.d or rcN.d or
rc.local or something.
Leif
> Kernel : 2.4.22
>
> _________________________________________________________________
> Get 10mb of inbox space with MSN Hotmail Extra Storage
> http://join.msn.com/?pgmarket=en-sg
>
>
> ---------------------------------------------------------------------
> 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
>
>
>
---------------------------------------------------------------------
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] Linux FD limit
Posted by Richard Gration <ri...@zync.co.uk>.
[apologies if anyone sees 2 post from me on this subject - my earlier
post seems to have been blackholed]
Wee Teck Neo wrote:
> A bit out of topic here, anyone knows how to permanently set a higher FD
> Limit instead of the standard 1024 in RedHat 9?
>
> Currently i'm setting a higher limit by setting a higher limit in
> /etc/security/limits.conf
>
> then issue a ulimit -n 8192
>
> But this setting is lost after i log off.
>
>
> Kernel : 2.4.22
As Leif W points out, the ulimit command needs to be in the httpd
startup script, /etc/init.d/httpd.
The crucial step is to increase the system limits with something like:
echo 16384 > /proc/sys/fs/file-max
This is the actual line from my /etc/rc.local and it works for me ;-)
Rick
PS For the benefit of anyone googling this thread, the 2.4.x kernels
have no inode-max setting, but the 2.2.x kernels _do_ and it needs to be
raised accordingly, with a line like
echo 65536 > /proc/sys/fs/inode-max
Here, inode-max is 4 * file-max, a fair rule of thumb. YMMV
---------------------------------------------------------------------
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