I tried testing things on a VPS, and came close to 10K requests per second, and that was a simple \'hello world\' servlet
, let alone making a call to membase.
Turn on NIO (Non-Blocking IO). This is not by default turned on. Without NIO, every HTTP connection is handled by a single thread and the limit is dependent on the amount of threads available. With NIO, multiple HTTP connections can be handled by a single thread and the limit is dependent on amount of heap memory available. With about 2GB you can go up to 20K connections.
Turning on NIO is a matter of changing the protocol
attribute of the /conf/server.xml
to "org.apache.coyote.http11.Http11NioProtocol"
.