Hi,

> /etc/security/limits.conf being ignored by pound ?

This is not related to pound, but to ubuntu/debian.
I've tried that too on my tomcat machines with no effect. I've read a
post somewhere (can not find it anymore) that ubuntu/debian does not use
limits.conf anymore. Instead have a look on /etc/security/limits.d/ and
how to configure that.

For me, this is the easy way to go:
> adding "ulimit -n 400000" to /etc/init.d/pound" and a restart of pound


Kind regards
David


On 26.02.2013 09:55, Nigel Pallett wrote:
> Ok, I think it is solved.
> 
> Adding entries in /etc/security/limits.conf and rebooting made no
> effect, as "cat /proc/[process id]/limits" still showed soft limit 1024
> , hard limit 4096
> 
> adding "ulimit -n 400000" to /etc/init.d/pound" and a restart of pound
> did the trick.
> 
> Thank you to everyone who responded so quickly.
> 
> The question remains, however, why are changes to
> /etc/security/limits.conf being ignored by pound ?
> 
> Regards,
> Nigel.
>  
> On 25/02/13 21:08, Joe Gooch wrote:
>>
>> And you can tell if it took effect by looking in proc.
>>
>>  
>>
>> Do a ps awwux |grep pound  and find the process id
>>
>>  
>>
>> Then cat /proc/[process id]/limits
>>
>>  
>>
>> And verify it took effect.
>>
>>  
>>
>> Joe
>>
>>  
>>
>> *From:*Emilio Campos [mailto:emilio.campos.mar...@gmail.com]
>> *Sent:* Monday, February 25, 2013 3:48 PM
>> *To:* pound@apsis.ch
>> *Subject:* Re: [Pound Mailing List] "Too many open files" errors
>> running pound 2.5-1.1 on Ubuntu 12.04
>>
>>  
>>
>> open a tty console:
>>
>> ulimit -n 30000
>>
>> after in the same console restart pound and try again, the irritating
>> message "too many open files" must to disappear.
>>
>> Regards
>>
>> Also you can add  "ulimit -n 30000" in your init.d script
>>
>> 2013/2/25 Nigel Pallett <nigel.pall...@lonres.com
>> <mailto:nigel.pall...@lonres.com>>
>>
>> Scott,
>>
>> Thank you for the good feedback
>>
>> I have the following settings in the global section:
>>
>> Client    30
>>
>> Timeout    240
>>
>> ConnTo 240
>>
>> Grace 240
>>
>> Alive     5
>>
>> Regards,
>> Nigel.
>>
>>
>>
>> On 25/02/13 16:11, Scott McKeown wrote:
>>
>>     Hi Nigel,
>>
>>     OK thats fine.
>>
>>     Do you have 'Alive', 'TimeOut' and 'ConnTo' values set in your
>>     Global or BackEnd sections?
>>     By default the Alive section is 30 seconds and the TimeOut &
>>     ConnTo is 15 seconds you may also find that a 'Grace' setting
>>     increase may help.
>>
>>     Although if you are just terminating an SSL Certificate and then
>>     trying to Load Balance over multiple backend servers you may want
>>     to have a look at HAProxy and let that do the heavy work instead
>>     of Pound. You will also get better debug logging (thats just my
>>     opinion though).
>>
>>
>>     ~Scott
>>
>>     On 25 February 2013 15:48, Nigel Pallett <nigel.pall...@lonres.com
>>     <mailto:nigel.pall...@lonres.com>> wrote:
>>
>>     Scott,
>>
>>     Pound is talking to backend apache webservers (on the 10.10.5.xxx
>>     addressess on the logs) configured with the rpaf module to talk
>>     back to pound.
>>
>>     This has been working successfully for almost two years now.
>>
>>     Is it possible that recent changes to the website application
>>     being served up by the backends could give rise to these errors ?
>>
>>     Regards,
>>     Nigel.
>>
>>      
>>
>>     On 25/02/13 15:23, Scott McKeown wrote:
>>
>>         Hi Nigel,
>>
>>         I'm guessing that you are passing this to something like
>>         HAProxy which is your backend server on '10.10.5.122' its this
>>         that is passing the error back to Pound so I would have a look
>>         there.
>>
>>         However, I could be wrong but a copy of your pound.cfg would
>>         help (remove real world IP's etc.)
>>
>>
>>         ~Scott
>>
>>
>>         On 25 February 2013 14:58, Nigel Pallett
>>         <nigel.pall...@lonres.com <mailto:nigel.pall...@lonres.com>>
>>         wrote:
>>
>>         Hi,
>>
>>         I'm running pound 2.5-1.1 on Ubuntu 12.04.2 LTS , and I'm
>>         getting lot's of "Too many open files" errors in syslog
>>         (See example below)
>>
>>         
>> ------------------------------------------------------------------------------------------------------------------------------------------------------
>>
>>         Feb 25 14:53:30 gr-lb01 pound: HTTP accept: Too many open files
>>         Feb 25 14:53:30 gr-lb01 pound: (7f3273bc4700) e503 backend
>>         10.10.5.122:80 <http://10.10.5.122:80> socket create: Too many
>>         open files
>>         Feb 25 14:53:30 gr-lb01 pound: HTTP accept: Too many open files
>>         Feb 25 14:53:30 gr-lb01 pound: (7f325330c700) e503 backend
>>         10.10.5.122:80 <http://10.10.5.122:80> socket create: Too many
>>         open files
>>         Feb 25 14:53:30 gr-lb01 pound: HTTP accept: Too many open files
>>         Feb 25 14:53:30 gr-lb01 pound: (7f3273bc4700) e503 backend
>>         10.10.5.123:80 <http://10.10.5.123:80> socket create: Too many
>>         open files
>>         Feb 25 14:53:30 gr-lb01 pound: (7f3270380700) e503 backend
>>         10.10.5.123:80 <http://10.10.5.123:80> socket create: Too many
>>         open files
>>         Feb 25 14:53:30 gr-lb01 pound: (7f325b69a700) e503 backend
>>         10.10.5.122:80 <http://10.10.5.122:80> socket create: Too many
>>         open files
>>         Feb 25 14:53:30 gr-lb01 pound: HTTP accept: Too many open files
>>         Feb 25 14:53:30 gr-lb01 pound: (7f3271136700) e503 backend
>>         10.10.5.121:80 <http://10.10.5.121:80> socket create: Too many
>>         open files
>>         Feb 25 14:53:30 gr-lb01 pound: (7f32712bc700) e503 backend
>>         10.10.5.124:80 <http://10.10.5.124:80> socket create: Too many
>>         open files
>>         Feb 25 14:53:30 gr-lb01 pound: (7f32712bc700) e503 backend
>>         10.10.5.122:80 <http://10.10.5.122:80> socket create: Too many
>>         open files
>>         Feb 25 14:53:30 gr-lb01 pound: (7f3271136700) e503 backend
>>         10.10.5.124:80 <http://10.10.5.124:80> socket create: Too many
>>         open files
>>         Feb 25 14:53:30 gr-lb01 pound: HTTP accept: Too many open files
>>         Feb 25 14:53:30 gr-lb01 pound: (7f325b69a700) e503 backend
>>         10.10.5.124:80 <http://10.10.5.124:80> socket create: Too many
>>         open files
>>         Feb 25 14:53:30 gr-lb01 pound: HTTP accept: Too many open files
>>         Feb 25 14:53:30 gr-lb01 pound: (7f325b69a700) e503 backend
>>         10.10.5.122:80 <http://10.10.5.122:80> socket create: Too many
>>         open files
>>         Feb 25 14:53:30 gr-lb01 pound: HTTP accept: Too many open files
>>         Feb 25 14:53:30 gr-lb01 pound: HTTP accept: Too many open files
>>         Feb 25 14:53:30 gr-lb01 pound: (7f3271136700) e503 backend
>>         10.10.5.122:80 <http://10.10.5.122:80> socket create: Too many
>>         open files
>>         Feb 25 14:53:30 gr-lb01 pound: (7f3271136700) e503 backend
>>         10.10.5.124:80 <http://10.10.5.124:80> socket create: Too many
>>         open files
>>         Feb 25 14:53:30 gr-lb01 pound: (7f325b69a700) e503 backend
>>         10.10.5.123:80 <http://10.10.5.123:80> socket create: Too many
>>         open files
>>         Feb 25 14:53:33 gr-lb01 pound: HTTP accept: Too many open files
>>         Feb 25 14:53:33 gr-lb01 pound: (7f325a75e700) e503 backend
>>         10.10.5.124:80 <http://10.10.5.124:80> socket create: Too many
>>         open files
>>         Feb 25 14:53:33 gr-lb01 pound: HTTP accept: Too many open files
>>         Feb 25 14:53:33 gr-lb01 pound: HTTP accept: Too many open files
>>         Feb 25 14:53:33 gr-lb01 pound: HTTP accept: Too many open files
>>         Feb 25 14:53:33 gr-lb01 pound: HTTP accept: Too many open files
>>         Feb 25 14:53:33 gr-lb01 pound: (7f325a75e700) e503 backend
>>         10.10.5.121:80 <http://10.10.5.121:80> socket create: Too many
>>         open files
>>         Feb 25 14:53:33 gr-lb01 pound: HTTP accept: Too many open files
>>         Feb 25 14:53:33 gr-lb01 pound: (7f3272293700) e503 backend
>>         10.10.5.122:80 <http://10.10.5.122:80> socket create: Too many
>>         open files
>>         Feb 25 14:53:33 gr-lb01 pound: (7f3271f46700) e503 backend
>>         10.10.5.124:80 <http://10.10.5.124:80> socket create: Too many
>>         open files
>>
>>         
>> ------------------------------------------------------------------------------------------------------------------------------------------------------
>>
>>         Any Ideas ?
>>
>>         Regards,
>>
>>         Nigel.
>>
>>         --
>>         To unsubscribe send an email with subject unsubscribe to
>>         pound@apsis.ch <mailto:pound@apsis.ch>.
>>         Please contact ro...@apsis.ch <mailto:ro...@apsis.ch> for
>>         questions.
>>
>>
>>
>>
>>         -- 
>>         With Kind Regards.
>>
>>         Scott McKeown
>>         Loadbalancer.org
>>         http://www.loadbalancer.org
>>
>>      
>>
>>     -- To unsubscribe send an email with subject unsubscribe to
>>     pound@apsis.ch <mailto:pound@apsis.ch>. Please contact
>>     ro...@apsis.ch <mailto:ro...@apsis.ch> for questions.
>>
>>
>>
>>
>>     -- 
>>     With Kind Regards.
>>
>>     Scott McKeown
>>     Loadbalancer.org
>>     http://www.loadbalancer.org
>>
>>  
>>
>> -- To unsubscribe send an email with subject unsubscribe to
>> pound@apsis.ch <mailto:pound@apsis.ch>. Please contact ro...@apsis.ch
>> <mailto:ro...@apsis.ch> for questions.
>>
>>
>>
>>
>> -- 
>> Load balancer distribution - Open Source Project
>> http://www.zenloadbalancer.com
>> Distribution list (subscribe):
>> zenloadbalancer-supp...@lists.sourceforge.net
>> <mailto:zenloadbalancer-supp...@lists.sourceforge.net>
>>
> 
> -- To unsubscribe send an email with subject unsubscribe to
> pound@apsis.ch. Please contact ro...@apsis.ch for questions.


--
To unsubscribe send an email with subject unsubscribe to pound@apsis.ch.
Please contact ro...@apsis.ch for questions.

Reply via email to