Tomcat: I originally wanted to replicate sessions between Tomcat 1 and 4, Tomcat 2 and 5, Tomcat 3 and 6 to form three groups of sub-clusters for session replication, but the sessions between servers could not be copied, later, I switched to two tomcat servers on the same server, for example, tomcat1 and 2. In this way, Session replication can be performed, that is, I access the program. Currently I use tomcat1, And I manually stop tomcat1, refresh the page, or the session that jumps to another tomcat1 is copied to tomcat2. I do not know whether Session replication can be performed between tomcat on the two servers. How can I set the Server. xml configuration of tomcat:
# Ports on the same server are different
# The AJP ports on the same server are different
# JvmRoute: unique value for each tomcat
Address = "228.0.0.4" # the same group of tomcat Clusters
Port = "45564" # the same group of tomcat Clusters
Frequency = "500"
DropTime = "3000" type = "codeph" text = "codeph"/>
Address = "auto"
Port = "4000" # different ports on the same machine
AutoBind = "100"
SelectorTimeout = "5000"
MaxThreads = "6"/>
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.