I am developing a web application in Spring and Tomcat 6. Sometimes, for some reason, the request takes too long to complete, and this reduces server performance. Is it possible to limit query execution time in Tomcat 6 or Spring? Other approaches on this issue are welcome. Thank you
Is it possible to limit query execution time in Tomcat 6 or Spring?
Yes, it is possible, but you will need to implement it yourself.
, Timer, N , , , . , , .
Timer
, , . - , - ; . Tomcat.
( - , , . . , , -, , , ...)
HttpConnector connectionTimeout
connectionTimeout
server.xml
<Connector ... connectionTimeout="xxxx"
xxxx -
. , browswer , , , . ( , ?). - RST.