brooklyncentral / brooklyn

This project has moved and is now part of the ASF
https://github.com/apache/incubator-brooklyn
72 stars 27 forks source link

web app service continuity / misconfig #365

Open ahgittin opened 11 years ago

ahgittin commented 11 years ago

if sending thousands of request per second to jboss or nginx, sequentially as fast as we can (eg in WebAppMonitor), we observe a failure after 8k requests (almost exactly 8160 requests on my machine).

i suspect a misconfig is causing some limit to be reached. but the logs are silent.

ahgittin commented 11 years ago

if we close the connection quite vigorously (in HttpTestUtils) the problem against jboss goes away, we can do 6k reqs/sec sequentially (many more likely in parallel) for as long as we've tried. pull request coming.

but nginx still starts to fail after 16k requests.

i've tried various nginx config options but can't seem to fix it. beating on jboss simultaneously is fine, so the problem is likely nginx reaching some simultaneous connection limit / not closing. the docs say keepalive should close old ones when new ones are wanted, but this doesn't seem to be happening. (only tested on osx, so need to try with others.)

see NginxIntegrationTest.testContinuityNginxAndJboss