'ILong active sessions in Tomcat, how can I kill them?
I have tomcat8.5 on centos 7, I have problems with active sessions and I have to restart every night, I still can't identify what is the cause, is there a way to cut active tomcat sessions for a while? I have maxage enabled at 60000 but I still see connections remain open, Try to use the jdbcInterceptors parameter by adding the line to jdbc
to see if I can also see where the connection is staying but I don't get anything either
Has anyone had this happen to me? thank you
initialSize="4"
minIdle="2"
maxIdle="8"
maxActive="110"
maxAge="60000"
maxWaitMillis="-1"
maxwait= "5000"
testOnBorrow="true"
testOnReturn="false"
testWhileIdle="false"
validationQuery="SELECT 1 FROM dual"
validationQueryTimeout="10"
validationInterval="15000"
timeBetweenEvictionRunsMillis="60000"
minEvictableIdleTimeMillis="900000"
removeAbandoned="true"
removeAbandonedOnmaintence="true"
removeAbandonedTimeout="60"
logAbandoned="true"
testWhileIdle="true"
logValidationErrors="true"
jdbcInterceptors="org.apache.tomcat.jdbc.pool.interceptor.ConnectionState;
org.apache.tomcat.jdbc.pool.interceptor.StatementFinalizer"
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
