Hi
Is there anyway to control thread execution time in jboss.
Server.xml has following config:
<Connector protocol="HTTP/1.1" port="8080" address="${jboss.bind.address}"
connectionTimeout="20000" redirectPort="8443" maxThreads="20"
minSpareThreads="2" acceptCount="10" keepAliveTimeout="30" maxKeepAliveRequests="1"/>
I would not like to increase number of threads from 20.
When I run my application and provide requests more than 20 but less than 30 (maxThreads + acceptCount) the application hangs and returns to normal when all busy threads complete tasks and return to ready state.
In second run when I created more than 30 busy threads the application crashed and return back again to normal after some time.
My need is that if particular thread takes more time than say 2 minuted that thread should be interrupted/killed.
So that after 2 minutes of rum it is available to take other tasks.
Is there any way to achieve same in Jboss