omonoiatis9
Technical User
Hello,
I have 2 RHEL 5.11 servers and both of them are running tomcat application.
Both servers are active but only one of them is the "live" server.
All connections are handled by a firewall which determines which server acts as the "live" one and therefore redirects the packages there. When the firewall decides that the "live" server changes (due to network communication delays or other reason) it clears all connections send to the previously active server and send the packages to the new active server.
However, i noticed that when the failover happens the connections of the previously active server remain "established" on the server and they are not cleared unless i stop and start tomcat application.
When i stop tomcat i see the following messages in catalina.out
Is there a way to clear these connections without restarting tomcat?
Thank you
I have 2 RHEL 5.11 servers and both of them are running tomcat application.
Both servers are active but only one of them is the "live" server.
All connections are handled by a firewall which determines which server acts as the "live" one and therefore redirects the packages there. When the firewall decides that the "live" server changes (due to network communication delays or other reason) it clears all connections send to the previously active server and send the packages to the new active server.
However, i noticed that when the failover happens the connections of the previously active server remain "established" on the server and they are not cleared unless i stop and start tomcat application.
When i stop tomcat i see the following messages in catalina.out
Code:
Dec 15, 2015 2:14:46 PM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
SEVERE: The web application [/xxxapp] created a ThreadLocal with key of type [org.apache.xmlbeans.XmlBeans$1] (value [org.apache.xmlbeans.XmlBeans$1@1584b8d]) and a value of type [java.lang.ref.SoftReference] (value [java.lang.ref.SoftReference@1f8183b]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Dec 15, 2015 2:14:46 PM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
SEVERE: The web application [/xxxapp] created a ThreadLocal with key of type [com.arcot.core.util.PerfCountersPerThread$2] (value [com.arcot.core.util.PerfCountersPerThread$2@2d2d8c]) and a value of type [java.util.HashMap] (value [{authentication.=com.arcot.core.util.PerfCounters@fee424, issuance.=com.arcot.core.util.PerfCounters@342b49}]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Is there a way to clear these connections without restarting tomcat?
Thank you