Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-8805

[GSS] (7.0.z) XNIO-286 - QueuedNioTcpServer does not response if accepts fails

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • 7.0.5.CR1
    • Remoting
    • 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

      Attachments

        Issue Links

          Activity

            People

              rhn-engineering-lgao Lin Gao
              rhn-engineering-lgao Lin Gao
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: