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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • None
    • 7.0.5.CR1
    • Remoting

      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

              rhn-support-tmiyargi Teresa Miyar Gil (Inactive)
              rhn-engineering-lgao Lin Gao
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: