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
- clones
-
JBEAP-8804 [GSS](7.1.z) XNIO-286 - QueuedNioTcpServer does not response if accepts fails
- Closed
- incorporates
-
XNIO-286 QueuedNioTcpServer does not respond if accept fails
- Resolved
- is caused by
-
JBEAP-8081 (7.0.z) XNIO-279 - QueuedNioTcpServer can go into an infinite loop if accept fails
- Closed