Hi,
We are trying to run some stress testing on our REST service but in that
process, we found that there are no issues when we ran 1000 parallel client
connections. But when we increased the clients to 2000, we found errors that
indicate server could not accept connections. If we configure our clients to
retry, all clients run to completion.
But this capacity of < 2000 looks like a big limitation for us. How can we
increase the max. no. of client connections the underlying Jetty of CXF
2.3.x can accept?
I am trying to do something like this:
ThreadingParameters tp = new ThreadingParameters();
tp.setMaxThreads(6000);
tp.setMinThreads(2000);
Map<String, ThreadingParameters> tpMap = new HashMap<String,
ThreadingParameters>();
tpMap.put(httpsPort + "", tp);
JettyHTTPServerEngineFactory jettyFactory = new
JettyHTTPServerEngineFactory();
jettyFactory.setThreadingParametersMap(tpMap);
Will this work? I don't see any other support in API to achieve this? Please
help me :)
Thanks & Regards,
Anil