[TOMCAT] 톰캣 세션 클러스터링 안되는 문제
아파치 없이 톰캣 2개만으로 세션 클러스터링 묶을 경우, 세션 클러스터링 안되는 문제 발생.
web.xml 의 버전을 2.5에서 3.1로 수정하였더니 잘 된다고 함.
AS-IS
<web-app xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xmlns=”http://java.sun.com/xml/ns/javaee” xmlns:web=”http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd” xsi:schemaLocation=”http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd” version=”2.5″>
TO-BE
<web-app xmlns=”http://xmlns.jcp.org/xml/ns/javaee“
xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance“
xsi:schemaLocation=”http://xmlns.jcp.org/xml/ns/javaee
http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd” version=”3.1″ metadata-complete=”true”>
로그 비교


스프링 로그상 web.xml 버전이 2.5 일 경우 “org.apache.catalina.ha.session.DeltaManager startInternal” 이 기록되지 않음.
web.xml 버전이 3.1 일 경우 다음 로그가 기록됨.
|
5월 20, 2019 11:02:36 오전 org.apache.catalina.ha.session.DeltaManager startInternal |
로그에 “DeltaManager startInternal” 과 “DeltaManager getAllClusterSessions” 가 기록되지 않을 경우 web.xml 버전을 확인해볼 것.