Hello

That's an error from tomcat?

Up the nofiles in etc security limits is normal way to do that

Neil
On 9 Apr 2015 18:50, "ballu balram" <ballubalram...@gmail.com> wrote:

> Hi,
>    After installing haproxy in ubuntu  i get error ;-
>
> *29-Mar-2015 06:47:43.963 SEVERE [http-nio-9191-Acceptor-0]
> org.apache.tomcat.util.net.NioEndpoint$Acceptor.run Socket accept failed*
> * java.io.IOException: Too many open files*
> *        at sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method)*
> *        at
> sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:241)*
> *        at
> org.apache.tomcat.util.net.NioEndpoint$Acceptor.run(NioEndpoint.java:688)*
> *        at java.lang.Thread.run(Thread.java:745)*
>
>
> *My haproxy.cfg is as shown below==> *
>
> global
> log    127.0.0.1 local0
>         chroot /var/lib/haproxy
>         stats socket /run/haproxy/admin.sock mode 660 level admin
> stats timeout 30s
>         user haproxy
>         group haproxy
>         maxconn 300
>         daemon
> pidfile /var/run/haproxy.pid
>
> defaults
>         log     global
>         mode    http
>         option  httplog
>         option  forceclose
>         timeout connect 30000
>         timeout client  180000
>         timeout server  180000
>
> listen stats *:1936
>         stats enable
>         stats uri /stats
>         stats hide-version
>         stats auth xyz:ss
>
>
> frontend localnodes
>         bind *:9000
>         mode http
> option  forceclose
>         option httplog
>         log global
> use_backend %[path,map_beg(/usr/local/staging/haproxy_frontend.txt,users)]
>         default_backend users
>
> backend apiproduct
>         mode http
>         balance roundrobin
>         option httpchk HEAD /apiproduct-service/ HTTP/1.0
>         server local <hostname>:9191 maxconn 10 check inter 10000 rise 2
> fall 2
>
>
>
> Let me know where i m doing wrong. If i check open file lsof -p  it give
> me max 600 to 800.
>
>
>
>

Reply via email to