I am running WildFly 10 (Final release) and I have a very simple JAX-RS server application. It has only one test endpoint, which waits for one second and then returns HTTP OK status.
@Path("/test")
public class TestEndpoint {
@GET
@Produces("application/json;charset=UTF-8")
public Response get() {
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
e.printStackTrace();
}
return Response.ok().build();
}
Trouble is that with this setup, I am only able to reach 10 requests per second. No more.I am testing this with SoapUI LoadTest - 100 threads, 1 ms delay between requests.
I bought a book called WildFly Administration Guide and tried some undertow settings:
Nothing helped.
Is this WildFly related problem, or something else?
Increasing of task-max-threads attribute may help. CLI command:
/subsystem=io/worker=default:write-attribute(name=task-max-threads,value=200)