How to limit query execution time with Tomcat 6

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

+7
source share
3 answers

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 , , , . , , .


, , . - , - ; . Tomcat.

( - , , . . , , -, , , ...)

+1

HttpConnector connectionTimeout

server.xml

<Connector ... connectionTimeout="xxxx"

xxxx -

0

. , browswer , , , . ( , ?). - RST.

0

All Articles