我创建了一个叫做clusterapp的WEB应用程序来验证集群安装以及SESSION复制原理。为了测试真实的SESSION复制,我写了一个叫做 SessionReplicationClient的简单JAVA客户端用语测试从一个服务器拷贝SESSION数据到另外一个服务器的需要的时间。这个客户端使用Jakarta Commons HttpClient况架去创建和操作HTTP SESSION并且调用TOMCAT服务器上的一个SERVLET。用于测试SESSION复制的机器软硬件配置如下: ● CPU: HP Pavilion Pentium III 800MHz ● Memory: 512MB RAM ● Hard disk: 40GB ● Operating system: Windows 2000 server ● JDK version: 1.4.2_05 (Note: JDK 1.4 or later version is required to use clustering and session replication) ● Tomcat version: 5.0.28 ● Tools: Pen, Log4J, Eclipse, Commons HttpClient
I want to thank Filip Hanik for his valuable suggestions and feedback on the replication modes, session replication web application setup, and the test client sections of this article.
资源 · ·Matrix-Java开发者社区: ·onjava.com: ·Tomcat 5集群中的SESSION复制 第一部分: ·Tomcat Clustering/Session Replication Home Page: ·Tomcat Load Balancer Home Page :
Srini Penchikala is an information systems subject matter expert at Flagstar Bank.