1 Reply Latest reply on Apr 5, 2016 5:02 AM by mkopecky

    Wildfly number of client connections JAX-RS/Resteasy

    paulie-paulie

      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:

      • Stack size (500)
      • Trying to set core-max-threads actually results in "failure-description" => "WFLYCTL0201: Unknown attribute 'task-core-threads'
      • IO Threads (500)

      Nothing helped.

      Is this WildFly related problem, or something else?