5

Can I set timeouts for JSP pages in tomcat either on a per page or server level?

2 Answers 2

6

In the Tomcat server.xml file, the Connector element also has a connectionTimeout attribute in milliseconds.

Example:

<Connector URIEncoding="UTF-8" acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" enableLookups="false" maxHttpHeaderSize="8192" maxSpareThreads="75" maxThreads="150" minSpareThreads="25" port="7777" redirectPort="8443" /> 
Sign up to request clarification or add additional context in comments.

1 Comment

I have set connectionTimeout=5 and requests processing time is 50 ms but still I can't see timeouts
2

For server level, you can try this.
you have to change catalina.bat / catalina.sh file

jvm OPTIONS : -Dsun.net.client.defaultConnectTimeout=60000 -Dsun.net.client.defaultReadTimeout=60000 

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.