* echo my_max > /proc/sys/kernel/file-max - safe?
@ 1997-11-06 19:26 Andi Hechtbauer
0 siblings, 0 replies; 3+ messages in thread
From: Andi Hechtbauer @ 1997-11-06 19:26 UTC (permalink / raw)
Hi all,
my axp server gets busier and I bounced into "too many open files" for
the second time today. This caused several processes to hang, resulting
in more and more filedescriptors beeing needed and so on...
I looked around a bit and found the limit of 1024 open files in
'cat /proc/sys/kernel/file-max'.
A search in some newsgroups and mailinglist-archives found suggestions
to "echo my_max > /proc/sys/kernel/file-max" in some rc-file.
Is this in your opinion a Safe Thing To Do [tm]?
What are my alternatives if not? And what might be unwanted side effects?
How can I find out what value of my_max is appropriate in my case?
Thanks in advance,
--
Andi Hechtbauer anti@spin.de
System Administration voice: +49 941 94 65 939
SPiN GmbH http://www.spin.de/ fax: +49 941 94 65 938
------- web design - java chats - guestbooks - java/cgi coding -------
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: echo my_max > /proc/sys/kernel/file-max - safe?
@ 1997-11-07 2:39 Steven Kokinos
1997-11-07 8:55 ` Christopher E. Brown
0 siblings, 1 reply; 3+ messages in thread
From: Steven Kokinos @ 1997-11-07 2:39 UTC (permalink / raw)
>A search in some newsgroups and mailinglist-archives found suggestions
>to "echo my_max > /proc/sys/kernel/file-max" in some rc-file.
>
>Is this in your opinion a Safe Thing To Do [tm]?
Absolutely, this is part of what we modify on all kernels, both intel and
alpha. The standard open files is set *very* conservatively and can be
much higher without causing any particular difficulty, and in fact cleans
up several problems, especially when using a busy web server in
conjunction with databases such as MySQL, or msql.
-Steve Kokinos
--
Steven Kokinos - Web Developers Network <http://www.webdevelop.com>
Dedicated Sun Sparcstations Running Solaris or Linux from **$99/MONTH**
60 Day *FREE* virtual hosting trial, mission critical network.
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: echo my_max > /proc/sys/kernel/file-max - safe?
1997-11-07 2:39 echo my_max > /proc/sys/kernel/file-max - safe? Steven Kokinos
@ 1997-11-07 8:55 ` Christopher E. Brown
0 siblings, 0 replies; 3+ messages in thread
From: Christopher E. Brown @ 1997-11-07 8:55 UTC (permalink / raw)
On Thu, 6 Nov 1997, Steven Kokinos wrote:
> >A search in some newsgroups and mailinglist-archives found suggestions
> >to "echo my_max > /proc/sys/kernel/file-max" in some rc-file.
> >
> >Is this in your opinion a Safe Thing To Do [tm]?
>
> Absolutely, this is part of what we modify on all kernels, both intel and
> alpha. The standard open files is set *very* conservatively and can be
> much higher without causing any particular difficulty, and in fact cleans
> up several problems, especially when using a busy web server in
> conjunction with databases such as MySQL, or msql.
I do this to all my system, otherwise I run out on many of em.
Only problem is the per user file limit (for non root users) is hardcoded,
and is an issue for non-root servers (httpd, mysqld, etc).
I missed the start of this so am not shure if it has been said
but.. When you increase file-max you should also increase inode-max.
If you increase file-max by a factor of 3 you should also do the same with
inode-max, otherwise you may max out allowed inodes before reaching you
file limit.
----------------------------------------------------------------------------
Christopher E. Brown (CB421) <cbrown@alaska.net> +(907) 357-5680
We are Pentium of Borg. Division is futile. You will be approximated.
----------------------------------------------------------------------------
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1997-11-07 8:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-11-07 2:39 echo my_max > /proc/sys/kernel/file-max - safe? Steven Kokinos
1997-11-07 8:55 ` Christopher E. Brown
-- strict thread matches above, loose matches on Subject: below --
1997-11-06 19:26 Andi Hechtbauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox