Tomcat에서 시간 초과를 설정하는 방법이 있습니까?
문제
Tomcat에서 JSP 페이지의 시간 초과를 페이지 당 또는 서버 레벨에서 설정할 수 있습니까?
해결책
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
다른 팁
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" />
제휴하지 않습니다 StackOverflow