I have deployed a webapp in Tomcat 7, and I'm not using Eclipse, but when I run application last 10 min appear a timeout exception, exactly: Read timed out.
I've tried to change:
In web.xml
:
session-timeout 30
In server.xml
I added:
connectionTimeout="20000"
keepAliveTimeout="90"
Also I addes in startup.bin
before @echo off
:
CATALINA_OPTS=
-Dsun.net.client.defaultConnectTimeout=900000;
-Dsun.net.client.defaultReadTimeout=900000
I don't know what other parameter to configure, because always stop to 10 min.
Someone can I help me?
If you are using eclipse. Then goto server explorer and double click on your tomcat server. It'll open a new tab inside your eclipse. There is Timeout section on the right side. you can increase your session timeout time of tomcat server. without changing the server.xml
if it doesn't work follow below link
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.