|
/
Zope
/
Apsis
/
Pound Mailing List
/
Archive
/
2007
/
2007-11
/
Too many open files
[
Pound-2.3.2 X-SSL-certificate single-line patch / ... ]
[
Remove failing server from pool / Michal Taborsky ... ]
Too many open files
Thorsten Kramm <kramm(at)abacho.net> |
2007-11-18 21:12:15 |
[ FULL ]
|
Hi all pound users,
two weeks ago I installed pound as the load balancer for the german
webportal www.abacho.de.
I compiled pound 2.3.2 on debian etch AMD64.
Everything went fine, but we still get the errors below:
"pound: backend 192.168.4.xyz:80 create: Too many open files"
And every time pound spits out this error the customer gets the error
page 503.
I read all related items on the pound mailing list and I searched google
to solve this problem.
First I screwed up the files.max option in /etc/sysctl.conf
My actual configuration is now:
fs.file-max = 262144
I reduced Client timeout to 3 sec in pounds configuration for each listener.
The amount of errors reduced but the still occur frequently.
cat /proc/sys/fs/file-nr
shows:
1024 0 262144
The first value varies between 900 and 1024. As I notice it never grows
up to more then 1024.
As I understand the second value indicates the number of free
file-descriptors. In my case, no free file-descriptors are left.
Now, what I don't understand is, why there are no file-descriptors left,
even the maximum is not reached yet?
The machine has enough free ram:
free shows:
total used free shared buffers cached
Mem: 1027644 266236 761408 0 42072 132120
-/+ buffers/cache: 92044 935600
Swap: 262072 0 262072
Kernel is 2.6.18-4-amd64 debian pre compiled standard kernel.
File system is ext3 on a solid state Ide to Flash Disk.
The machine has a low load not overriding 0.5.
Has anybody any idea how to solve this problem?
Many thanks for your hints and kind regards from Germany.
Mit freundlichen Grüßen,
Abacho Aktiengesellschaft
i. A. Thorsten Kramm
Systemadministrator
---------------------------------------------------------------
Abacho Aktiengesellschaft E-Mail: Kramm(at)Abacho.net
Gerhard-Hoehme-Allee 1 Telefon: +49 (0)2131 5606-00
41466 Neuss Telefax: +49 (0)2131 5606-99
http://www.Abacho.net
---------------------------------------------------------------
Vorstand: Ingo Endemann (Vorsitzender)
Andreas Stietzel
Vorsitzender des Aufsichtsrates: Dr. Gereon Mertens
---------------------------------------------------------------
Sitz der Gesellschaft: Neuss Handelsregister Neuss, HRB 9736
---------------------------------------------------------------
|
|
|
Re: [Pound Mailing List] Too many open files
Dave Steinberg <dave(at)redterror.net> |
2007-11-18 20:26:40 |
[ FULL ]
|
<snip>
[...]
<snip>
Have you checked the ulimit for the user running pound?
Regards,[...]
|
|
|
Re: [Pound Mailing List] Too many open files
"Simon Matter" <simon.matter(at)invoca.ch> |
2007-11-18 20:36:02 |
[ FULL ]
|
> Hi all pound users,[...]
Just a quick idea, what are the ulimits on the user which runs pound? You
should check with ulimit -a for the user pound runs as. Maybe you should
check /etc/security/limits.conf (or wherever that is on debian).
While I have never seen such a problem with pound, I guess that's where
your problem may be.
Regards,
Simon
[...]
|
|
|
Re: [Pound Mailing List] Too many open files
Nagy Gergely <nagy.gergely(at)gnanet.net> |
2007-11-19 10:15:14 |
[ FULL ]
|
As told before the user which runs pound has a default user limit of
1024, (this is some linux dependent default)
So you have to:
Try to modify the init script which starts pound
insert the following line before you start pound
ulimit -n 2048
This gives you a file limit of 2048 for that pound process.
I had this problem with apache, there were too many sites, and they
opened everytime with a unique acccess and error log (approx 500 sites
opening 1000 files for logging)
Greg
2007. 11. 18, vasárnap keltezéssel 21.12-kor Thorsten Kramm ezt Ãrta:[...]
|
| Attachments: | | |
| smime.p7s |
application/x-pkcs7-signature |
3395 Bytes |
|
|
|
|