4 Replies Latest reply on Oct 11, 2016 9:25 AM by mcowan

    Should Undertow Timeout Kill IO Thread Process? (Wildfly 8.2.0)

    mcowan

      Hi,

       

      I am currently using Wildfly 8.2.0 and have a question around how bean processes are handled that I couldn't find documentation for.

       

      What I am working on is adding limits to our stack to start rejecting calls when we near resource exhaustion (thinking CPU, memory etc).

       

      We have an Nginx proxy in front of Wildfly that we are using to limit the number of concurrent requests (I am aware this can also be enforced in Undertow) and increased task-max-threads in urn:jboss:domain:io:1.1 worker.

       

      I also wanted to limit the time a request can put load on the service, so added a read-timeout and write-timeout to urn:jboss:domain:undertow:1.2 http-listener.

       

      This all works fine. The problem is that when the http-listener times out, the java process that it spawns is not interrupted, which is what I expected.

       

      Clearly I have the wrong idea here but wondered how can you set a TTL for the Java process created for the http request?

       

      Thanks for any help you can give.