Uploaded image for project: 'XNIO'
  1. XNIO
  2. XNIO-286

QueuedNioTcpServer does not respond if accept fails

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.4.3.Final
    • Fix Version/s: None
    • Component/s: nio-impl
    • Labels:
      None

      Description

      Scenario:
      1. EAP 7 started in standalone mode
      2. ulimit set: ulimit -n 500
      3. test application deployed (attached long-running-servlet.war servlet doing Thread.sleep(duration))
      4. HTTP server benchmarking tool run with parameters

      ab -n 1000 -c 1000 -k http://127.0.0.1:8080/long-running-servlet/HeavyProcessing?duration=2500
      

      Benchmarking tool produced output:

      This is ApacheBench, Version 2.3 <$Revision: 1748469 $>
      Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
      Licensed to The Apache Software Foundation, http://www.apache.org/
       
      Benchmarking 127.0.0.1 (be patient)
      socket: Too many open files (24)
      

      Server logged ERROR:

      ERROR [org.xnio.nio.tcp.server] (default Accept) Exception accepting request, closing server channel TCP server (NIO) <10541d74>: java.io.IOException: Too many open files
      	at sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method)
      	at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:422)
      	at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:250)
      	at org.xnio.nio.QueuedNioTcpServer.handleReady(QueuedNioTcpServer.java:477)
      	at org.xnio.nio.QueuedNioTcpServerHandle.handleReady(QueuedNioTcpServerHandle.java:38)
      	at org.xnio.nio.WorkerThread.run(WorkerThread.java:567)
      

      5. Run: 'curl http://127.0.0.1:8080' , server does not respond anymore

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  gaol Lin Gao
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated: