Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] Jetty blocks and times out repeatably under load

Hi,

I'm having an issue with the Jetty server whereby throwing rapid (single threaded) GETs at the root URL results in it locking up then timing out at ~16380 requests. I've tried this in versions 6.1.16, 8.1.5.v20120716 and 9.0.3.v20130506, all with identical results. In each case I tested with a vanilla install of Jetty with no code deployed and no configuration changed other than port numbers.

Here is my Apache Bench output for versions 8:

$ ab -c 1 -n 20000 http://localhost:8091/
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking localhost (be patient)
Completed 2000 requests
Completed 4000 requests
Completed 6000 requests
Completed 8000 requests
Completed 10000 requests
Completed 12000 requests
Completed 14000 requests
Completed 16000 requests
apr_socket_recv: Operation timed out (60)
Total of 16378 requests completed

and version 9:
$ ab -c 1 -n 20000 http://localhost:8080/
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking localhost (be patient)
Completed 2000 requests
Completed 4000 requests
Completed 6000 requests
Completed 8000 requests
Completed 10000 requests
Completed 12000 requests
Completed 14000 requests
Completed 16000 requests
apr_socket_recv: Operation timed out (60)
Total of 16380 requests completed

I'm running a 2010 MacBook Pro i5 and I've run this test on Snow Leopard and Mountain Lion. I've also seen evidence of this problem on a colleague's Windows 7 laptop.

Has anyone else ever seen this?

Thanks,
Tom

Back to the top