/ Zope / Apsis / Pound Mailing List / Archive / 2010 / 2010-12 / too many open files please help

[ << ] [ >> ]

[ Redirect and log level 5 / Francisco Ruiz ... ] [ Re: [Pound Mailing List] ANNOUNCE: Pound - ... ]

too many open files please help
Emilio Campos <emilio.campos.martin(at)gmail.com>
2010-12-30 10:28:42 [ FULL ]
Hi, Today I can see this message on my pound log

Dec 30 10:24:46 lb pound: (b2ee0b90) e503 backend 192.168.1.10:80 socket
create: Too many open files
Dec 30 10:24:46 lb pound: (af2fab90) e503 backend 192.168.1.10:80 socket
create: Too many open files
Dec 30 10:24:46 lb pound: (b1a55b90) e503 backend 192.168.1.10:80 socket
create: Too many open files

I modified the open files on my operative system


# ulimit -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
max nice                        (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 67584
max locked memory       (kbytes, -l) 32
max memory size         (kbytes, -m) unlimited
open files                      (-n) 1000000
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
max rt priority                 (-r) 0
stack size              (kbytes, -s) 10240
cpu time               (seconds, -t) unlimited
max user processes              (-u) 67584
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited

My pound is 2.5 version

CAn you help me please?
[...]
Attachments:  
text.html text/html 1725 Bytes

Re: [Pound Mailing List] too many open files please help
"Simon Matter" <simon.matter(at)invoca.ch>
2010-12-30 11:05:21 [ FULL ]
> Hi, Today I can see this message on my pound log[...]

Did you change it for the user as which pound runs?

Simon
[...]

Re: [Pound Mailing List] too many open files please help
Emilio Campos <emilio.campos.martin(at)gmail.com>
2010-12-30 11:41:17 [ FULL ]
Yes modified.

I can see two diferents error messages:

1º)
Dec 30 10:24:46 lb pound: (b2ee0b90) e503 backend
192.168.1.10:80<http://192.168.1.10/>socket[...]


and

2º)
Dec 30 11:36:35 sc02sns01 pound: HTTP accept: Too many open files

I think the first message is problem between pound and backend server, the
server response with amessage when it try open a socket

and the second message I dn`t know, is it a response from the first message?
or is it a problem with pound an the system?

I updated de ulimit -n for user that run pound (root) to:[...]
1009000

any suggestions?

Thanks

2010/12/30 Simon Matter <simon.matter(at)invoca.ch>
[...]

[...]
Attachments:  
text.html text/html 4017 Bytes

Re: [Pound Mailing List] too many open files please help
Piotr Jakubowski <Piotr.Jakubowski(at)bossa.pl>
2010-12-30 12:53:26 [ FULL ]
Hello Emilio,

How do you run your pound?
My guess is that if you run it with su command you should check your pam 
config for su.

Debian has it here: /etc/pam.d/su and it should contain uncomented line:

session    required   pam_limits.so

Works for me.

Piotr


W dniu 2010-12-30 11:41, Emilio Campos pisze:[...][...][...][...][...]
>>>
>>> Dec 30 10:24:46 lb pound: (b2ee0b90) e503 backend 192.168.1.10:80
socket
>>> create: Too many open files
>>> Dec 30 10:24:46 lb pound: (af2fab90) e503 backend 192.168.1.10:80
socket
>>> create: Too many open files
>>> Dec 30 10:24:46 lb pound: (b1a55b90) e503 backend 192.168.1.10:80
socket
>>> create: Too many open files
>>>
>>> I modified the open files on my operative system[...]
>>>
>>> # ulimit -a
>>> core file size          (blocks, -c) 0
>>> data seg size           (kbytes, -d) unlimited
>>> max nice                        (-e) 0
>>> file size               (blocks, -f) unlimited
>>> pending signals                 (-i) 67584
>>> max locked memory       (kbytes, -l) 32
>>> max memory size         (kbytes, -m) unlimited
>>> open files                      (-n) 1000000
>>> pipe size            (512 bytes, -p) 8
>>> POSIX message queues     (bytes, -q) 819200
>>> max rt priority                 (-r) 0
>>> stack size              (kbytes, -s) 10240
>>> cpu time               (seconds, -t) unlimited
>>> max user processes              (-u) 67584
>>> virtual memory          (kbytes, -v) unlimited
>>> file locks                      (-x) unlimited
>>>
>>> My pound is 2.5 version
>>>
>>> CAn you help me please?
>>>
>>> --
>>> Load balancer distribution - Open Source Project
>>> http://zenloadbalancer.sourceforge.net
>>> Distribution list (subscribe):
>>> zenloadbalancer-support(at)lists.sourceforge.net
>>>
>>>
>>> --
>>> To unsubscribe send an email with subject unsubscribe to
pound(at)apsis.ch.
>>> Please contact roseg(at)apsis.ch for questions.
>>>[...][...]

Re: [Pound Mailing List] too many open files please help
Emilio Campos <emilio.campos.martin(at)gmail.com>
2010-12-30 14:34:25 [ FULL ]
Hi, Piotr, Now I am running pound with user root:

root(at)mymachine# /opt/pound-2.5/sbin/pound -f /opt/pound-2.5/etc/pound.conf

root(at)mymachine# ps -ef | grep pound
root     11864     1  0 08:59 ?        00:00:00 /opt/pound-2.5/sbin/pound -f
/opt/pound-2.5/etc/pound.conf
root     11865 11864 40 08:59 ?        00:32:05 /opt/pound-2.5/sbin/pound -f
/opt/pound-2.5/etc/pound.conf

#

at the same time I executed:

lsof -p 11865 | wc -l
1088


and at the moment i can see on the logs:

Dec 30 09:07:32 sc02sns01 pound: HTTP accept: Too many open files
Dec 30 09:07:32 sc02sns01 pound: HTTP accept: Too many open files
Dec 30 09:07:32 sc02sns01 pound: backend 10.234.23.182:80 create: Too many
open files
Dec 30 09:07:32 sc02sns01 pound: HTTP accept: Too many open files
Dec 30 09:07:32 sc02sns01 pound: backend 10.234.23.182:80 create: Too many
open files
Dec 30 09:07:32 sc02sns01 pound: HTTP accept: Too many open files
Dec 30 09:07:32 sc02sns01 pound: backend 10.234.23.183:80 create: Too many
open files
Dec 30 09:07:32 sc02sns01 pound: HTTP accept: Too many open files
Dec 30 09:07:32 sc02sns01 pound: HTTP accept: Too many open files
Dec 30 09:07:32 sc02sns01 pound: backend 10.234.23.181:80 create: Too many
open files
Dec 30 09:07:32 sc02sns01 pound: HTTP accept: Too many open files
Dec 30 09:07:32 sc02sns01 pound: backend 10.234.23.180:80 create: Too many
open files
Dec 30 09:07:32 sc02sns01 pound: HTTP accept: Too many open files
Dec 30 09:07:32 sc02sns01 pound: backend 10.234.23.183:80 create: Too many
open files
Dec 30 09:07:32 sc02sns01 pound: HTTP accept: Too many open files
Dec 30 09:07:32 sc02sns01 pound: backend 10.234.23.180:80 create: Too many
open files
Dec 30 09:07:32 sc02sns01 pound: HTTP accept: Too many open files
Dec 30 09:07:32 sc02sns01 pound: HTTP accept: Too many open files
Dec 30 09:07:32 sc02sns01 pound: backend 10.234.23.183:80 create: Too many
open files
Dec 30 09:07:33 sc02sns01 pound: HTTP accept: Too many open files
Dec 30 09:07:33 sc02sns01 pound: backend 10.234.23.183:80 create: Too many
open files
Dec 30 09:07:33 sc02sns01 pound: HTTP accept: Too many open files
Dec 30 09:07:33 sc02sns01 pound: HTTP accept: Too many open files
Dec 30 09:07:33 sc02sns01 pound: HTTP accept: Too many open files
Dec 30 09:07:33 sc02sns01 pound: backend 10.234.23.182:80 create: Too many
open files
Dec 30 09:07:33 sc02sns01 pound: HTTP accept: Too many open files
Dec 30 09:07:33 sc02sns01 pound: HTTP accept: Too many open files
Dec 30 09:07:33 sc02sns01 pound: backend 10.234.23.183:80 create: Too many
open files
Dec 30 09:07:33 sc02sns01 pound: backend 10.234.23.183:80 create: Too many
open files
Dec 30 09:07:33 sc02sns01 pound: backend 10.200.36.66:80 create: Too many
open files

I think it is problem of communication between pound (linux) and IIS
(Windows), when I restart pound the connections are Ok for minutes only.

# ulimit -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
max nice                        (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 67584
max locked memory       (kbytes, -l) 32
max memory size         (kbytes, -m) unlimited
open files                      (-n) 1000000
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
max rt priority                 (-r) 0
stack size              (kbytes, -s) 10240
cpu time               (seconds, -t) unlimited
max user processes              (-u) 67584
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited

any suggestions?

Do you think that this is a pound problem?

Thanks and regards

2010/12/30 Piotr Jakubowski <Piotr.Jakubowski(at)bossa.pl>
[...][...]
>>>[...]
>>>[...]
>>>>
>>>> Dec 30 10:24:46 lb pound: (b2ee0b90) e503 backend
192.168.1.10:80socket
>>>> create: Too many open files
>>>> Dec 30 10:24:46 lb pound: (af2fab90) e503 backend
192.168.1.10:80socket
>>>> create: Too many open files
>>>> Dec 30 10:24:46 lb pound: (b1a55b90) e503 backend
192.168.1.10:80socket
>>>> create: Too many open files
>>>>
>>>> I modified the open files on my operative system
>>>>
>>>
>>> Did you change it for the user as which pound runs?
>>>
>>> Simon
>>>
>>>
>>>>
>>>> # ulimit -a
>>>> core file size          (blocks, -c) 0
>>>> data seg size           (kbytes, -d) unlimited
>>>> max nice                        (-e) 0
>>>> file size               (blocks, -f) unlimited
>>>> pending signals                 (-i) 67584
>>>> max locked memory       (kbytes, -l) 32
>>>> max memory size         (kbytes, -m) unlimited
>>>> open files                      (-n) 1000000
>>>> pipe size            (512 bytes, -p) 8
>>>> POSIX message queues     (bytes, -q) 819200
>>>> max rt priority                 (-r) 0
>>>> stack size              (kbytes, -s) 10240
>>>> cpu time               (seconds, -t) unlimited
>>>> max user processes              (-u) 67584
>>>> virtual memory          (kbytes, -v) unlimited
>>>> file locks                      (-x) unlimited
>>>>
>>>> My pound is 2.5 version
>>>>
>>>> CAn you help me please?
>>>>
>>>> --
>>>> Load balancer distribution - Open Source Project
>>>> http://zenloadbalancer.sourceforge.net
>>>> Distribution list (subscribe):
>>>> zenloadbalancer-support(at)lists.sourceforge.net
>>>>
>>>>
>>>> --
>>>> To unsubscribe send an email with subject unsubscribe to
pound(at)apsis.ch
>>>> .
>>>> Please contact roseg(at)apsis.ch for questions.
>>>>
>>>>
>>>
>>>
>>> --
>>> To unsubscribe send an email with subject unsubscribe to
pound(at)apsis.ch.
>>> Please contact roseg(at)apsis.ch for questions.
>>>
>>>[...][...]

[...]
Attachments:  
text.html text/html 9964 Bytes

Re: [Pound Mailing List] too many open files please help
Piotr Jakubowski <Piotr.Jakubowski(at)bossa.pl>
2010-12-30 15:25:15 [ FULL ]
Hi,

Still, if you use RootJail parameter (send us your pound.conf) you 
should check your pam config.

I'm sure it has nothing to do with IIS and pound. It's clearly linux 
limits problem.

Piotr

W dniu 2010-12-30 14:34, Emilio Campos pisze:[...][...]
>>>
>>> I can see two diferents error messages:
>>>
>>> 1º)
>>> Dec 30 10:24:46 lb pound: (b2ee0b90) e503 backend
>>> 192.168.1.10:80<http://192.168.1.10/>socket
>>>
>>>> create: Too many open files
>>>>
>>>
>>>
>>> and
>>>
>>> 2º)
>>> Dec 30 11:36:35 sc02sns01 pound: HTTP accept: Too many open files
>>>
>>> I think the first message is problem between pound and backend
server, the
>>> server response with amessage when it try open a socket
>>>
>>> and the second message I dn`t know, is it a response from the
first
>>> message?
>>> or is it a problem with pound an the system?
>>>
>>> I updated de ulimit -n for user that run pound (root) to:
>>>
>>>> ulimit -n
>>>>
>>> 1009000
>>>
>>> any suggestions?
>>>
>>> Thanks
>>>
>>> 2010/12/30 Simon Matter<simon.matter(at)invoca.ch>
>>>
>>>   Hi, Today I can see this message on my pound log
>>>>>
>>>>> Dec 30 10:24:46 lb pound: (b2ee0b90) e503 backend
192.168.1.10:80socket
>>>>> create: Too many open files
>>>>> Dec 30 10:24:46 lb pound: (af2fab90) e503 backend
192.168.1.10:80socket
>>>>> create: Too many open files
>>>>> Dec 30 10:24:46 lb pound: (b1a55b90) e503 backend
192.168.1.10:80socket
>>>>> create: Too many open files
>>>>>
>>>>> I modified the open files on my operative system
>>>>>
>>>>
>>>> Did you change it for the user as which pound runs?
>>>>
>>>> Simon
>>>>
>>>>
>>>>>
>>>>> # ulimit -a
>>>>> core file size          (blocks, -c) 0
>>>>> data seg size           (kbytes, -d) unlimited
>>>>> max nice                        (-e) 0
>>>>> file size               (blocks, -f) unlimited
>>>>> pending signals                 (-i) 67584
>>>>> max locked memory       (kbytes, -l) 32
>>>>> max memory size         (kbytes, -m) unlimited
>>>>> open files                      (-n) 1000000
>>>>> pipe size            (512 bytes, -p) 8
>>>>> POSIX message queues     (bytes, -q) 819200
>>>>> max rt priority                 (-r) 0
>>>>> stack size              (kbytes, -s) 10240
>>>>> cpu time               (seconds, -t) unlimited
>>>>> max user processes              (-u) 67584
>>>>> virtual memory          (kbytes, -v) unlimited
>>>>> file locks                      (-x) unlimited
>>>>>
>>>>> My pound is 2.5 version
>>>>>
>>>>> CAn you help me please?
>>>>>
>>>>> --
>>>>> Load balancer distribution - Open Source Project
>>>>> http://zenloadbalancer.sourceforge.net
>>>>> Distribution list (subscribe):
>>>>> zenloadbalancer-support(at)lists.sourceforge.net
>>>>>
>>>>>
>>>>> --
>>>>> To unsubscribe send an email with subject unsubscribe to
pound(at)apsis.ch
>>>>> .
>>>>> Please contact roseg(at)apsis.ch for questions.
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> To unsubscribe send an email with subject unsubscribe to
pound(at)apsis.ch.
>>>> Please contact roseg(at)apsis.ch for questions.
>>>>
>>>>
>>>
>>>
>>>[...][...]

Re: [Pound Mailing List] too many open files please help
Emilio Campos <emilio.campos.martin(at)gmail.com>
2010-12-30 18:42:25 [ FULL ]
This is my global configuration section

## global options:

User        "root"
Group        "root"
#RootJail    /chroot/pound

## allow PUT and DELETE also (by default only GET, POST and HEAD)?:
#ExtendedHTTP    0


## Logging: (goes to syslog by default)
##    0    no logging
##    1    normal
##    2    extended
##    3    Apache-style (common log format)
LogLevel     2
#LogLevel     0

## check backend:
Timeout        45
Alive        10
#Client        30
Control     "/opt/pound-2.5/etc/pound.socket"



..... after, there is a  lot of virtualhost configuration!

#######

thanks!

2010/12/30 Piotr Jakubowski <Piotr.Jakubowski(at)bossa.pl>
[...][...]
>>>
>>> How do you run your pound?
>>> My guess is that if you run it with su command you should check
your pam
>>> config for su.
>>>
>>> Debian has it here: /etc/pam.d/su and it should contain uncomented
line:
>>>
>>> session    required   pam_limits.so
>>>
>>> Works for me.
>>>
>>> Piotr
>>>
>>>
>>> W dniu 2010-12-30 11:41, Emilio Campos pisze:
>>>
>>>  Yes modified.
>>>
>>>>
>>>> I can see two diferents error messages:
>>>>
>>>> 1º)
>>>> Dec 30 10:24:46 lb pound: (b2ee0b90) e503 backend
>>>> 192.168.1.10:80<http://192.168.1.10/>socket
>>>>
>>>>  create: Too many open files
>>>>>
>>>>>
>>>>
>>>> and
>>>>
>>>> 2º)
>>>> Dec 30 11:36:35 sc02sns01 pound: HTTP accept: Too many open
files
>>>>
>>>> I think the first message is problem between pound and backend
server,
>>>> the
>>>> server response with amessage when it try open a socket
>>>>
>>>> and the second message I dn`t know, is it a response from the
first
>>>> message?
>>>> or is it a problem with pound an the system?
>>>>
>>>> I updated de ulimit -n for user that run pound (root) to:
>>>>
>>>>  ulimit -n
>>>>>
>>>>>  1009000
>>>>
>>>> any suggestions?
>>>>
>>>> Thanks
>>>>
>>>> 2010/12/30 Simon Matter<simon.matter(at)invoca.ch>
>>>>
>>>>  Hi, Today I can see this message on my pound log
>>>>
>>>>>
>>>>>> Dec 30 10:24:46 lb pound: (b2ee0b90) e503 backend
192.168.1.10:80
>>>>>> socket
>>>>>> create: Too many open files
>>>>>> Dec 30 10:24:46 lb pound: (af2fab90) e503 backend
192.168.1.10:80
>>>>>> socket
>>>>>> create: Too many open files
>>>>>> Dec 30 10:24:46 lb pound: (b1a55b90) e503 backend
192.168.1.10:80
>>>>>> socket
>>>>>> create: Too many open files
>>>>>>
>>>>>> I modified the open files on my operative system
>>>>>>
>>>>>>
>>>>> Did you change it for the user as which pound runs?
>>>>>
>>>>> Simon
>>>>>
>>>>>
>>>>>
>>>>>> # ulimit -a
>>>>>> core file size          (blocks, -c) 0
>>>>>> data seg size           (kbytes, -d) unlimited
>>>>>> max nice                        (-e) 0
>>>>>> file size               (blocks, -f) unlimited
>>>>>> pending signals                 (-i) 67584
>>>>>> max locked memory       (kbytes, -l) 32
>>>>>> max memory size         (kbytes, -m) unlimited
>>>>>> open files                      (-n) 1000000
>>>>>> pipe size            (512 bytes, -p) 8
>>>>>> POSIX message queues     (bytes, -q) 819200
>>>>>> max rt priority                 (-r) 0
>>>>>> stack size              (kbytes, -s) 10240
>>>>>> cpu time               (seconds, -t) unlimited
>>>>>> max user processes              (-u) 67584
>>>>>> virtual memory          (kbytes, -v) unlimited
>>>>>> file locks                      (-x) unlimited
>>>>>>
>>>>>> My pound is 2.5 version
>>>>>>
>>>>>> CAn you help me please?
>>>>>>
>>>>>> --
>>>>>> Load balancer distribution - Open Source Project
>>>>>> http://zenloadbalancer.sourceforge.net
>>>>>> Distribution list (subscribe):
>>>>>> zenloadbalancer-support(at)lists.sourceforge.net
>>>>>>
>>>>>>
>>>>>> --
>>>>>> To unsubscribe send an email with subject unsubscribe
to
>>>>>> pound(at)apsis.ch
>>>>>> .
>>>>>> Please contact roseg(at)apsis.ch for questions.
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>> --
>>>>> To unsubscribe send an email with subject unsubscribe to
>>>>> pound(at)apsis.ch.
>>>>> Please contact roseg(at)apsis.ch for questions.
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>  --
>>> To unsubscribe send an email with subject unsubscribe to
pound(at)apsis.ch.
>>> Please contact roseg(at)apsis.ch for questions.
>>>
>>>[...][...]

[...]
Attachments:  
text.html text/html 12139 Bytes

Re: [Pound Mailing List] too many open files please help
Matti Aarnio <matti.aarnio(at)methics.fi>
2010-12-30 19:50:27 [ FULL ]
On 12/30/2010 03:34 PM, Emilio Campos wrote:[...]

OK.  That is nowhere near "ulimit -n" value of 1 million.
What about:

# cat /proc/sys/fs/file-nr
11104   0       789217

# cat /proc/sys/fs/file-max
789217


Tuning these (assuming you have Linux, other systems have similar controls) may
help you.
[...]
Attachments:  
smime.p7s application/pkcs7-signature 2836 Bytes

Re: [Pound Mailing List] too many open files please help
Piotr Jakubowski <Piotr.Jakubowski(at)bossa.pl>
2010-12-31 09:19:26 [ FULL ]
Hello Emilio,

Did you check your PAM config?
Which Linux distribution do you have?

Piotr

W dniu 2010-12-30 18:42, Emilio Campos pisze:[...][...]
>>>
>>> root(at)mymachine# /opt/pound-2.5/sbin/pound -f
>>> /opt/pound-2.5/etc/pound.conf
>>>
>>> root(at)mymachine# ps -ef | grep pound
>>> root     11864     1  0 08:59 ?        00:00:00
/opt/pound-2.5/sbin/pound
>>> -f
>>> /opt/pound-2.5/etc/pound.conf
>>> root     11865 11864 40 08:59 ?        00:32:05
/opt/pound-2.5/sbin/pound
>>> -f
>>> /opt/pound-2.5/etc/pound.conf
>>>
>>> #
>>>
>>> at the same time I executed:
>>>
>>> lsof -p 11865 | wc -l
>>> 1088
>>>
>>>
>>> and at the moment i can see on the logs:
>>>
>>> Dec 30 09:07:32 sc02sns01 pound: HTTP accept: Too many open files
>>> Dec 30 09:07:32 sc02sns01 pound: HTTP accept: Too many open files
>>> Dec 30 09:07:32 sc02sns01 pound: backend 10.234.23.182:80 create:
Too
>>> many
>>> open files
>>> Dec 30 09:07:32 sc02sns01 pound: HTTP accept: Too many open files
>>> Dec 30 09:07:32 sc02sns01 pound: backend 10.234.23.182:80 create:
Too
>>> many
>>> open files
>>> Dec 30 09:07:32 sc02sns01 pound: HTTP accept: Too many open files
>>> Dec 30 09:07:32 sc02sns01 pound: backend 10.234.23.183:80 create:
Too
>>> many
>>> open files
>>> Dec 30 09:07:32 sc02sns01 pound: HTTP accept: Too many open files
>>> Dec 30 09:07:32 sc02sns01 pound: HTTP accept: Too many open files
>>> Dec 30 09:07:32 sc02sns01 pound: backend 10.234.23.181:80 create:
Too
>>> many
>>> open files
>>> Dec 30 09:07:32 sc02sns01 pound: HTTP accept: Too many open files
>>> Dec 30 09:07:32 sc02sns01 pound: backend 10.234.23.180:80 create:
Too
>>> many
>>> open files
>>> Dec 30 09:07:32 sc02sns01 pound: HTTP accept: Too many open files
>>> Dec 30 09:07:32 sc02sns01 pound: backend 10.234.23.183:80 create:
Too
>>> many
>>> open files
>>> Dec 30 09:07:32 sc02sns01 pound: HTTP accept: Too many open files
>>> Dec 30 09:07:32 sc02sns01 pound: backend 10.234.23.180:80 create:
Too
>>> many
>>> open files
>>> Dec 30 09:07:32 sc02sns01 pound: HTTP accept: Too many open files
>>> Dec 30 09:07:32 sc02sns01 pound: HTTP accept: Too many open files
>>> Dec 30 09:07:32 sc02sns01 pound: backend 10.234.23.183:80 create:
Too
>>> many
>>> open files
>>> Dec 30 09:07:33 sc02sns01 pound: HTTP accept: Too many open files
>>> Dec 30 09:07:33 sc02sns01 pound: backend 10.234.23.183:80 create:
Too
>>> many
>>> open files
>>> Dec 30 09:07:33 sc02sns01 pound: HTTP accept: Too many open files
>>> Dec 30 09:07:33 sc02sns01 pound: HTTP accept: Too many open files
>>> Dec 30 09:07:33 sc02sns01 pound: HTTP accept: Too many open files
>>> Dec 30 09:07:33 sc02sns01 pound: backend 10.234.23.182:80 create:
Too
>>> many
>>> open files
>>> Dec 30 09:07:33 sc02sns01 pound: HTTP accept: Too many open files
>>> Dec 30 09:07:33 sc02sns01 pound: HTTP accept: Too many open files
>>> Dec 30 09:07:33 sc02sns01 pound: backend 10.234.23.183:80 create:
Too
>>> many
>>> open files
>>> Dec 30 09:07:33 sc02sns01 pound: backend 10.234.23.183:80 create:
Too
>>> many
>>> open files
>>> Dec 30 09:07:33 sc02sns01 pound: backend 10.200.36.66:80 create:
Too many
>>> open files
>>>
>>> I think it is problem of communication between pound (linux) and
IIS
>>> (Windows), when I restart pound the connections are Ok for minutes
only.
>>>
>>> # ulimit -a
>>> core file size          (blocks, -c) 0
>>> data seg size           (kbytes, -d) unlimited
>>> max nice                        (-e) 0
>>> file size               (blocks, -f) unlimited
>>> pending signals                 (-i) 67584
>>> max locked memory       (kbytes, -l) 32
>>> max memory size         (kbytes, -m) unlimited
>>> open files                      (-n) 1000000
>>> pipe size            (512 bytes, -p) 8
>>> POSIX message queues     (bytes, -q) 819200
>>> max rt priority                 (-r) 0
>>> stack size              (kbytes, -s) 10240
>>> cpu time               (seconds, -t) unlimited
>>> max user processes              (-u) 67584
>>> virtual memory          (kbytes, -v) unlimited
>>> file locks                      (-x) unlimited
>>>
>>> any suggestions?
>>>
>>> Do you think that this is a pound problem?
>>>
>>> Thanks and regards
>>>
>>> 2010/12/30 Piotr Jakubowski<Piotr.Jakubowski(at)bossa.pl>
>>>
>>>   Hello Emilio,
>>>>
>>>> How do you run your pound?
>>>> My guess is that if you run it with su command you should
check your pam
>>>> config for su.
>>>>
>>>> Debian has it here: /etc/pam.d/su and it should contain
uncomented line:
>>>>
>>>> session    required   pam_limits.so
>>>>
>>>> Works for me.
>>>>
>>>> Piotr
>>>>
>>>>
>>>> W dniu 2010-12-30 11:41, Emilio Campos pisze:
>>>>
>>>>   Yes modified.
>>>>
>>>>>
>>>>> I can see two diferents error messages:
>>>>>
>>>>> 1º)
>>>>> Dec 30 10:24:46 lb pound: (b2ee0b90) e503 backend
>>>>> 192.168.1.10:80<http://192.168.1.10/>socket
>>>>>
>>>>>   create: Too many open files
>>>>>>
>>>>>>
>>>>>
>>>>> and
>>>>>
>>>>> 2º)
>>>>> Dec 30 11:36:35 sc02sns01 pound: HTTP accept: Too many
open files
>>>>>
>>>>> I think the first message is problem between pound and
backend server,
>>>>> the
>>>>> server response with amessage when it try open a socket
>>>>>
>>>>> and the second message I dn`t know, is it a response from
the first
>>>>> message?
>>>>> or is it a problem with pound an the system?
>>>>>
>>>>> I updated de ulimit -n for user that run pound (root) to:
>>>>>
>>>>>   ulimit -n
>>>>>>
>>>>>>   1009000
>>>>>
>>>>> any suggestions?
>>>>>
>>>>> Thanks
>>>>>
>>>>> 2010/12/30 Simon Matter<simon.matter(at)invoca.ch>
>>>>>
>>>>>   Hi, Today I can see this message on my pound log
>>>>>
>>>>>>
>>>>>>> Dec 30 10:24:46 lb pound: (b2ee0b90) e503 backend
192.168.1.10:80
>>>>>>> socket
>>>>>>> create: Too many open files
>>>>>>> Dec 30 10:24:46 lb pound: (af2fab90) e503 backend
192.168.1.10:80
>>>>>>> socket
>>>>>>> create: Too many open files
>>>>>>> Dec 30 10:24:46 lb pound: (b1a55b90) e503 backend
192.168.1.10:80
>>>>>>> socket
>>>>>>> create: Too many open files
>>>>>>>
>>>>>>> I modified the open files on my operative system
>>>>>>>
>>>>>>>
>>>>>> Did you change it for the user as which pound runs?
>>>>>>
>>>>>> Simon
>>>>>>
>>>>>>
>>>>>>
>>>>>>> # ulimit -a
>>>>>>> core file size          (blocks, -c) 0
>>>>>>> data seg size           (kbytes, -d) unlimited
>>>>>>> max nice                        (-e) 0
>>>>>>> file size               (blocks, -f) unlimited
>>>>>>> pending signals                 (-i) 67584
>>>>>>> max locked memory       (kbytes, -l) 32
>>>>>>> max memory size         (kbytes, -m) unlimited
>>>>>>> open files                      (-n) 1000000
>>>>>>> pipe size            (512 bytes, -p) 8
>>>>>>> POSIX message queues     (bytes, -q) 819200
>>>>>>> max rt priority                 (-r) 0
>>>>>>> stack size              (kbytes, -s) 10240
>>>>>>> cpu time               (seconds, -t) unlimited
>>>>>>> max user processes              (-u) 67584
>>>>>>> virtual memory          (kbytes, -v) unlimited
>>>>>>> file locks                      (-x) unlimited
>>>>>>>
>>>>>>> My pound is 2.5 version
>>>>>>>
>>>>>>> CAn you help me please?
>>>>>>>
>>>>>>> --
>>>>>>> Load balancer distribution - Open Source Project
>>>>>>> http://zenloadbalancer.sourceforge.net
>>>>>>> Distribution list (subscribe):
>>>>>>> zenloadbalancer-support(at)lists.sourceforge.net
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> To unsubscribe send an email with subject
unsubscribe to
>>>>>>> pound(at)apsis.ch
>>>>>>> .
>>>>>>> Please contact roseg(at)apsis.ch for questions.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> --
>>>>>> To unsubscribe send an email with subject unsubscribe
to
>>>>>> pound(at)apsis.ch.
>>>>>> Please contact roseg(at)apsis.ch for questions.
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>   --
>>>> To unsubscribe send an email with subject unsubscribe to
pound(at)apsis.ch.
>>>> Please contact roseg(at)apsis.ch for questions.
>>>>
>>>>
>>>
>>>
>>>[...][...]

Re: [Pound Mailing List] too many open files please help
Emilio Campos <emilio.campos.martin(at)gmail.com>
2010-12-31 11:54:00 [ FULL ]
Hi Priotr, for the moment the probem has solved, In the past I created a cgi
control panel for stop and start pound service and a global view with
pounctl, I detected that the cgi run pound  but not use init.d script for
run or stop, in my /etc/init.d/pound script I added a line

ulimit -n 50000

when poun stop/start with cgi, this value is not modified, but there is no
problem with the init.d script.

It is a big mistake that I just detect , I was crazy!!!  and now pound run
like a charm!!!, The next week a new webservice will be loaded with 20k new
access, I will see if all is ok!

Thanks to everybody for your help and suggestions!

THANK YOU VERY MUCH!!!

2010/12/31 Piotr Jakubowski <Piotr.Jakubowski(at)bossa.pl>
[...][...]
>>>
>>> Still, if you use RootJail parameter (send us your pound.conf) you
should
>>> check your pam config.
>>>
>>> I'm sure it has nothing to do with IIS and pound. It's clearly
linux
>>> limits
>>> problem.
>>>
>>> Piotr
>>>
>>> W dniu 2010-12-30 14:34, Emilio Campos pisze:
>>>
>>>  Hi, Piotr, Now I am running pound with user root:
>>>
>>>>
>>>> root(at)mymachine# /opt/pound-2.5/sbin/pound -f
>>>> /opt/pound-2.5/etc/pound.conf
>>>>
>>>> root(at)mymachine# ps -ef | grep pound
>>>> root     11864     1  0 08:59 ?        00:00:00
>>>> /opt/pound-2.5/sbin/pound
>>>> -f
>>>> /opt/pound-2.5/etc/pound.conf
>>>> root     11865 11864 40 08:59 ?        00:32:05
>>>> /opt/pound-2.5/sbin/pound
>>>> -f
>>>> /opt/pound-2.5/etc/pound.conf
>>>>
>>>> #
>>>>
>>>> at the same time I executed:
>>>>
>>>> lsof -p 11865 | wc -l
>>>> 1088
>>>>
>>>>
>>>> and at the moment i can see on the logs:
>>>>
>>>> Dec 30 09:07:32 sc02sns01 pound: HTTP accept: Too many open
files
>>>> Dec 30 09:07:32 sc02sns01 pound: HTTP accept: Too many open
files
>>>> Dec 30 09:07:32 sc02sns01 pound: backend 10.234.23.182:80
create: Too
>>>> many
>>>> open files
>>>> Dec 30 09:07:32 sc02sns01 pound: HTTP accept: Too many open
files
>>>> Dec 30 09:07:32 sc02sns01 pound: backend 10.234.23.182:80
create: Too
>>>> many
>>>> open files
>>>> Dec 30 09:07:32 sc02sns01 pound: HTTP accept: Too many open
files
>>>> Dec 30 09:07:32 sc02sns01 pound: backend 10.234.23.183:80
create: Too
>>>> many
>>>> open files
>>>> Dec 30 09:07:32 sc02sns01 pound: HTTP accept: Too many open
files
>>>> Dec 30 09:07:32 sc02sns01 pound: HTTP accept: Too many open
files
>>>> Dec 30 09:07:32 sc02sns01 pound: backend 10.234.23.181:80
create: Too
>>>> many
>>>> open files
>>>> Dec 30 09:07:32 sc02sns01 pound: HTTP accept: Too many open
files
>>>> Dec 30 09:07:32 sc02sns01 pound: backend 10.234.23.180:80
create: Too
>>>> many
>>>> open files
>>>> Dec 30 09:07:32 sc02sns01 pound: HTTP accept: Too many open
files
>>>> Dec 30 09:07:32 sc02sns01 pound: backend 10.234.23.183:80
create: Too
>>>> many
>>>> open files
>>>> Dec 30 09:07:32 sc02sns01 pound: HTTP accept: Too many open
files
>>>> Dec 30 09:07:32 sc02sns01 pound: backend 10.234.23.180:80
create: Too
>>>> many
>>>> open files
>>>> Dec 30 09:07:32 sc02sns01 pound: HTTP accept: Too many open
files
>>>> Dec 30 09:07:32 sc02sns01 pound: HTTP accept: Too many open
files
>>>> Dec 30 09:07:32 sc02sns01 pound: backend 10.234.23.183:80
create: Too
>>>> many
>>>> open files
>>>> Dec 30 09:07:33 sc02sns01 pound: HTTP accept: Too many open
files
>>>> Dec 30 09:07:33 sc02sns01 pound: backend 10.234.23.183:80
create: Too
>>>> many
>>>> open files
>>>> Dec 30 09:07:33 sc02sns01 pound: HTTP accept: Too many open
files
>>>> Dec 30 09:07:33 sc02sns01 pound: HTTP accept: Too many open
files
>>>> Dec 30 09:07:33 sc02sns01 pound: HTTP accept: Too many open
files
>>>> Dec 30 09:07:33 sc02sns01 pound: backend 10.234.23.182:80
create: Too
>>>> many
>>>> open files
>>>> Dec 30 09:07:33 sc02sns01 pound: HTTP accept: Too many open
files
>>>> Dec 30 09:07:33 sc02sns01 pound: HTTP accept: Too many open
files
>>>> Dec 30 09:07:33 sc02sns01 pound: backend 10.234.23.183:80
create: Too
>>>> many
>>>> open files
>>>> Dec 30 09:07:33 sc02sns01 pound: backend 10.234.23.183:80
create: Too
>>>> many
>>>> open files
>>>> Dec 30 09:07:33 sc02sns01 pound: backend 10.200.36.66:80
create: Too
>>>> many
>>>> open files
>>>>
>>>> I think it is problem of communication between pound (linux)
and IIS
>>>> (Windows), when I restart pound the connections are Ok for
minutes only.
>>>>
>>>> # ulimit -a
>>>> core file size          (blocks, -c) 0
>>>> data seg size           (kbytes, -d) unlimited
>>>> max nice                        (-e) 0
>>>> file size               (blocks, -f) unlimited
>>>> pending signals                 (-i) 67584
>>>> max locked memory       (kbytes, -l) 32
>>>> max memory size         (kbytes, -m) unlimited
>>>> open files                      (-n) 1000000
>>>> pipe size            (512 bytes, -p) 8
>>>> POSIX message queues     (bytes, -q) 819200
>>>> max rt priority                 (-r) 0
>>>> stack size              (kbytes, -s) 10240
>>>> cpu time               (seconds, -t) unlimited
>>>> max user processes              (-u) 67584
>>>> virtual memory          (kbytes, -v) unlimited
>>>> file locks                      (-x) unlimited
>>>>
>>>> any suggestions?
>>>>
>>>> Do you think that this is a pound problem?
>>>>
>>>> Thanks and regards
>>>>
>>>> 2010/12/30 Piotr
Jakubowski<Piotr.Jakubowski(at)bossa.pl>
>>>>
>>>>  Hello Emilio,
>>>>
>>>>>
>>>>> How do you run your pound?
>>>>> My guess is that if you run it with su command you should
check your
>>>>> pam
>>>>> config for su.
>>>>>
>>>>> Debian has it here: /etc/pam.d/su and it should contain
uncomented
>>>>> line:
>>>>>
>>>>> session    required   pam_limits.so
>>>>>
>>>>> Works for me.
>>>>>
>>>>> Piotr
>>>>>
>>>>>
>>>>> W dniu 2010-12-30 11:41, Emilio Campos pisze:
>>>>>
>>>>>  Yes modified.
>>>>>
>>>>>
>>>>>> I can see two diferents error messages:
>>>>>>
>>>>>> 1º)
>>>>>> Dec 30 10:24:46 lb pound: (b2ee0b90) e503 backend
>>>>>> 192.168.1.10:80<http://192.168.1.10/>socket
>>>>>>
>>>>>>  create: Too many open files
>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>> and
>>>>>>
>>>>>> 2º)
>>>>>> Dec 30 11:36:35 sc02sns01 pound: HTTP accept: Too many
open files
>>>>>>
>>>>>> I think the first message is problem between pound and
backend server,
>>>>>> the
>>>>>> server response with amessage when it try open a
socket
>>>>>>
>>>>>> and the second message I dn`t know, is it a response
from the first
>>>>>> message?
>>>>>> or is it a problem with pound an the system?
>>>>>>
>>>>>> I updated de ulimit -n for user that run pound (root)
to:
>>>>>>
>>>>>>  ulimit -n
>>>>>>
>>>>>>>
>>>>>>>  1009000
>>>>>>>
>>>>>>
>>>>>> any suggestions?
>>>>>>
>>>>>> Thanks
>>>>>>
>>>>>> 2010/12/30 Simon
Matter<simon.matter(at)invoca.ch>
>>>>>>
>>>>>>  Hi, Today I can see this message on my pound log
>>>>>>
>>>>>>
>>>>>>>  Dec 30 10:24:46 lb pound: (b2ee0b90) e503 backend
192.168.1.10:80
>>>>>>>> socket
>>>>>>>> create: Too many open files
>>>>>>>> Dec 30 10:24:46 lb pound: (af2fab90) e503
backend 192.168.1.10:80
>>>>>>>> socket
>>>>>>>> create: Too many open files
>>>>>>>> Dec 30 10:24:46 lb pound: (b1a55b90) e503
backend 192.168.1.10:80
>>>>>>>> socket
>>>>>>>> create: Too many open files
>>>>>>>>
>>>>>>>> I modified the open files on my operative
system
>>>>>>>>
>>>>>>>>
>>>>>>>>  Did you change it for the user as which pound
runs?
>>>>>>>
>>>>>>> Simon
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>  # ulimit -a
>>>>>>>> core file size          (blocks, -c) 0
>>>>>>>> data seg size           (kbytes, -d) unlimited
>>>>>>>> max nice                        (-e) 0
>>>>>>>> file size               (blocks, -f) unlimited
>>>>>>>> pending signals                 (-i) 67584
>>>>>>>> max locked memory       (kbytes, -l) 32
>>>>>>>> max memory size         (kbytes, -m) unlimited
>>>>>>>> open files                      (-n) 1000000
>>>>>>>> pipe size            (512 bytes, -p) 8
>>>>>>>> POSIX message queues     (bytes, -q) 819200
>>>>>>>> max rt priority                 (-r) 0
>>>>>>>> stack size              (kbytes, -s) 10240
>>>>>>>> cpu time               (seconds, -t) unlimited
>>>>>>>> max user processes              (-u) 67584
>>>>>>>> virtual memory          (kbytes, -v) unlimited
>>>>>>>> file locks                      (-x) unlimited
>>>>>>>>
>>>>>>>> My pound is 2.5 version
>>>>>>>>
>>>>>>>> CAn you help me please?
>>>>>>>>
>>>>>>>> --
>>>>>>>> Load balancer distribution - Open Source
Project
>>>>>>>> http://zenloadbalancer.sourceforge.net
>>>>>>>> Distribution list (subscribe):
>>>>>>>>
zenloadbalancer-support(at)lists.sourceforge.net
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> To unsubscribe send an email with subject
unsubscribe to
>>>>>>>> pound(at)apsis.ch
>>>>>>>> .
>>>>>>>> Please contact roseg(at)apsis.ch for
questions.
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>> --
>>>>>>> To unsubscribe send an email with subject
unsubscribe to
>>>>>>> pound(at)apsis.ch.
>>>>>>> Please contact roseg(at)apsis.ch for questions.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>  --
>>>>>>
>>>>> To unsubscribe send an email with subject unsubscribe to
>>>>> pound(at)apsis.ch.
>>>>> Please contact roseg(at)apsis.ch for questions.
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>  --
>>> To unsubscribe send an email with subject unsubscribe to
pound(at)apsis.ch.
>>> Please contact roseg(at)apsis.ch for questions.
>>>
>>>[...][...]

[...]
Attachments:  
text.html text/html 13736 Bytes

MailBoxer