3 Replies Latest reply on May 29, 2014 9:48 AM by petepl

    Many open files jndi.properties by JBoss AS 5 process


      Hi all,


      Last time we recieved that our JBoss AS 5 process is openning a lot of jndi.properties files, and not closing it.


      This cause that after few hours we are getting in server.log error "To many open files":


      2014-04-30 09:38:18,000 ERROR [org.apache.tomcat.util.net.JIoEndpoint] (http- Socket accept failed

      java.net.SocketException: Too many open files

        at java.net.PlainSocketImpl.socketAccept(Native Method)

        at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:375)

        at java.net.ServerSocket.implAccept(ServerSocket.java:478)

        at java.net.ServerSocket.accept(ServerSocket.java:446)

        at org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(DefaultServerSocketFactory.java:61)

        at org.apache.tomcat.util.net.JIoEndpoint$Acceptor.run(JIoEndpoint.java:310)

        at java.lang.Thread.run(Thread.java:701)


      I know that this problem is connected with limits on linux server. We can of course increase number of opened files by process, but I think that it will only postpone the problem.


      On JBoss AS 5 we have got some WebServices which uses Datasources by JNDI.


      Could anyone explain why jndi.properties files not closing and how resolve this problem ?