Uploaded image for project: 'bgpcep'
  1. bgpcep
  2. BGPCEP-28

Too many files open exception from Netty with multiple netconf clients

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • Bugzilla Migration
    • Bugzilla Migration
    • General
    • None
    • Operating System: All
      Platform: All

    • 133

    Description

      This issue is probably caused by using multiple instances of NioEventLoopGroup. With every new instance of org.opendaylight.protocol.framework.AbstractDispatcher, new NioEventLoopGroup is created.

      According to: https://github.com/netty/netty/issues/639

      Stack trace:

      07:57:06.110 [main] ERROR o.o.c.n.impl.ConcurrentClientsTest - Thread for testing client failed
      java.lang.IllegalStateException: failed to create a child event loop
      at io.netty.util.concurrent.MultithreadEventExecutorGroup.<init>(MultithreadEventExecutorGroup.java:61) ~[netty-common-4.0.10.Final.jar:na]
      at io.netty.channel.MultithreadEventLoopGroup.<init>(MultithreadEventLoopGroup.java:49) ~[netty-transport-4.0.10.Final.jar:na]
      at io.netty.channel.nio.NioEventLoopGroup.<init>(NioEventLoopGroup.java:61) ~[netty-transport-4.0.10.Final.jar:na]
      at io.netty.channel.nio.NioEventLoopGroup.<init>(NioEventLoopGroup.java:52) ~[netty-transport-4.0.10.Final.jar:na]
      at io.netty.channel.nio.NioEventLoopGroup.<init>(NioEventLoopGroup.java:44) ~[netty-transport-4.0.10.Final.jar:na]
      at io.netty.channel.nio.NioEventLoopGroup.<init>(NioEventLoopGroup.java:36) ~[netty-transport-4.0.10.Final.jar:na]
      at org.opendaylight.protocol.framework.AbstractDispatcher.<init>(AbstractDispatcher.java:58) ~[framework-0.3.0-SNAPSHOT.jar:na]
      at org.opendaylight.controller.netconf.client.NetconfClientDispatcher.<init>(NetconfClientDispatcher.java:35) ~[netconf-client-0.2.2-SNAPSHOT.jar:na]
      at org.opendaylight.controller.netconf.client.NetconfClient.<init>(NetconfClient.java:53) ~[netconf-client-0.2.2-SNAPSHOT.jar:na]
      at org.opendaylight.controller.netconf.client.NetconfClient.<init>(NetconfClient.java:86) ~[netconf-client-0.2.2-SNAPSHOT.jar:na]
      at org.opendaylight.controller.netconf.impl.ConcurrentClientsTest$TestingThread.run(ConcurrentClientsTest.java:265) ~[test-classes/:na]
      Caused by: io.netty.channel.ChannelException: failed to open a new selector
      at io.netty.channel.nio.NioEventLoop.openSelector(NioEventLoop.java:128) ~[netty-transport-4.0.10.Final.jar:na]
      at io.netty.channel.nio.NioEventLoop.<init>(NioEventLoop.java:120) ~[netty-transport-4.0.10.Final.jar:na]
      at io.netty.channel.nio.NioEventLoopGroup.newChild(NioEventLoopGroup.java:87) ~[netty-transport-4.0.10.Final.jar:na]
      at io.netty.util.concurrent.MultithreadEventExecutorGroup.<init>(MultithreadEventExecutorGroup.java:57) ~[netty-common-4.0.10.Final.jar:na]
      ... 10 common frames omitted
      Caused by: java.io.IOException: Too many open files
      at sun.nio.ch.IOUtil.makePipe(Native Method) ~[na:1.7.0_25]
      at sun.nio.ch.EPollSelectorImpl.<init>(EPollSelectorImpl.java:65) ~[na:1.7.0_25]
      at sun.nio.ch.EPollSelectorProvider.openSelector(EPollSelectorProvider.java:36) ~[na:1.7.0_25]
      at io.netty.channel.nio.NioEventLoop.openSelector(NioEventLoop.java:126) ~[netty-transport-4.0.10.Final.jar:na]
      ... 13 common frames omitted

      Attachments

        1. f.txt
          335 kB
          Maros Marsalek
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            mmarsale@cisco.com Maros Marsalek
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: