Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Apache Tomcat 7 Essentials

You're reading from  Apache Tomcat 7 Essentials

Product type Book
Published in Mar 2012
Publisher Packt
ISBN-13 9781849516624
Pages 294 pages
Edition 1st Edition
Languages
Author (1):
Tanuj Khare Tanuj Khare
Profile icon Tanuj Khare

Table of Contents (18) Chapters

Apache Tomcat 7 Essentials
Credits
About the Author
Acknowledgement
About the Reviewers
www.PacktPub.com
1. Preface
1. Installation of Tomcat 7 2. Configuration and Deployment 3. Performance Tuning 4. Integration of Tomcat with the Apache Web Server 5. Securing Tomcat 7 6. Logging in Tomcat 7 7. Troubleshooting in Tomcat 8. Monitoring and Management of Tomcat 7 9. Clustering in Tomcat 7 10. Tomcat Upgrade 11. Advanced Configuration for Apache Tomcat 7

Testing of the clustered instance


To perform cluster testing, we are going to take you through a sequence of events. In the following event, we only plan to use two Tomcat instances—tomcatnode1 and tomcatnode2. We will cover the following sequence of events:

  1. 1. Start tomcatnode1.

  2. 2. Start tomcatnode2 (wait for node 1 to start completely).

  3. 3. Node 1 crashes.

  4. 4. Node 2 takes over the user session of node 1 to node 2.

  5. 5. Start node 1 (wait for node 1 to start completely).

  6. 6. Node 2 and node 1 are in running state.

Now we have a good scenario with us, we will walk through how the entire process works:

  1. 1. Start instance 1: tomcatnode1 starts up using the standard startup sequence. When the host object is created, a cluster object is associated with it. Tomcat asks the cluster class (in this case SimpleTcpCluster) to create a manager for the cluster and the cluster class will start up a membership service.

    Note

    The membership service is a mechanism in the cluster instance through the cluster domain,...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}