[ https://issues.apache.org/jira/browse/STRATOS-723?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14092480#comment-14092480 ]
Reka Thirunavukkarasu commented on STRATOS-723: ----------------------------------------------- The root cause of this issue is that after periodic publishing, thrift agent fails to evict the old connection. In that case, agent will create new connection every time when we publish the events. So, the total number of connections got to increase with new connection + the connection got to be evicted. Since WSO2 fixes the eviction issue, now that the connections are getting evicted properly. So that total number connection is getting maintained properly with the limit of 250. > Stratos stopped working with java.net.SocketException > ----------------------------------------------------- > > Key: STRATOS-723 > URL: https://issues.apache.org/jira/browse/STRATOS-723 > Project: Stratos > Issue Type: Bug > Components: Cloud Controller > Affects Versions: 4.0.0 > Environment: Stratos 4.0.0 GA > Reporter: Jeffrey Nguyen > Fix For: 4.0.1 > > > We have a setup where Stratos stopped functioning after running for about 24 > hours. wso2carbon.log shows a lot of exceptions like one listed below. We > were advised to increase "ulimit" from default 1024 to around 65k but that's > only delaying the problem. > TID: [0] [STRATOS] [2014-07-16 07:03:58,597] WARN > {org.apache.thrift.server.TThreadPoolServer} - Transport error occurred d > uring acceptance of message. {org.apache.thrift.server.TThreadPoolServer} > org.apache.thrift.transport.TTransportException: java.net.SocketException: > Too many open files > at > org.apache.thrift.transport.TServerSocket.acceptImpl(TServerSocket.java:118) > at org.apache.thrift.transport.TServerSocket.acceptImpl(TServerSocket.java:35) > at > org.apache.thrift.transport.TServerTransport.accept(TServerTransport.java:31) > at > org.apache.thrift.server.TThreadPoolServer.serve(TThreadPoolServer.java:106) > at > org.wso2.carbon.databridge.receiver.thrift.internal.ThriftDataReceiver$ServerThread.run(ThriftDataReceiver.java:19 > 9) > at java.lang.Thread.run(Thread.java:745) > Caused by: java.net.SocketException: Too many open files > at java.net.PlainSocketImpl.socketAccept(Native Method) > at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:398) > at java.net.ServerSocket.implAccept(ServerSocket.java:530) > at java.net.ServerSocket.accept(ServerSocket.java:498) > at > org.apache.thrift.transport.TServerSocket.acceptImpl(TServerSocket.java:113) > ... 5 more -- This message was sent by Atlassian JIRA (v6.2#6252)