Re: [Pound Mailing List] "Too many open files" errors running pound 2.5-1.1 on Ubuntu 12.04
Dave Crouse <[email protected]>
| Newsgroups | gmane.comp.web.pound.general |
|---|---|
| Message-ID | <[email protected]> |
Nigel, I'm assuming you hard coded the new ulimit settings ? IE: ----------------- Ubuntu 12.04.2 LTS root@pound:~# ulimit -n 1024 Increase it.... EDIT: /etc/sysctl.conf # Increase the open file limit: # ADD: fs.file-max to 400000 EDIT: /etc/security/limits.conf # ADD: * hard nofile 400000 * soft nofile 400000 REBOOT: root@pound:~# ulimit -n 400000 ------------------- Dave On 02/25/2013 03:08 PM, 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:[email protected]] > Sent: Monday, February 25, 2013 3:48 PM > To: [email protected] > 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 <[email protected]<mailto:[email protected]>> > 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 <[email protected]<mailto:[email protected]>> 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 <[email protected]<mailto:[email protected]>> 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 [email protected]<mailto:[email protected]>. > Please contact [email protected]<mailto:[email protected]> for questions. > > > > -- > With Kind Regards. > > Scott McKeown > Loadbalancer.org > http://www.loadbalancer.org > > -- To unsubscribe send an email with subject unsubscribe to [email protected]<mailto:[email protected]>. Please contact [email protected]<mailto:[email protected]> for questions. > > > > -- > With Kind Regards. > > Scott McKeown > Loadbalancer.org > http://www.loadbalancer.org > > -- To unsubscribe send an email with subject unsubscribe to [email protected]<mailto:[email protected]>. Please contact [email protected]<mailto:[email protected]> for questions. > > > > -- > Load balancer distribution - Open Source Project > http://www.zenloadbalancer.com > Distribution list (subscribe): zenloadbalancer-support-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org<mailto:zenloadbalancer-support-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org> > -- To unsubscribe send an email with subject unsubscribe to [email protected] Please contact [email protected] for questions.