Can I set timeouts for JSP pages in tomcat either on a per page or server level?
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" />
                        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 
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With